php - 在我的ubuntu上,但它不工作,php安装 phpmyadmin

  显示原文与译文双语对照的内容

我在 ubuntu 10.4上安装 phpmyadmin,但它不能登录

这是 /etc/phpmyadmin/config.inc.php 文件的内容

如果我们输入密码 #2002 无法登录到MySQL服务器

如果我们不输入密码 密码,则配置( 查看 AllowNoPassword ) 禁止登录

你能帮我







/** * Debian local configuration file * * This file overrides the settings made by phpMyAdmin interactive setup * utility. * * For example configuration see/usr/share/doc/phpmyadmin/examples/config.default.php.gz * * NOTE: do not add security sensitive data to this file (like passwords) * unless you really know what you're doing. If you do, any user that can * run PHP or CGI on your webserver will be able to read them. If you still * want to do this, make sure to properly secure the access to this file * (also on the filesystem level). */


/** * Server(s) configuration */ $i = 0; //The $cfg['Servers'] array starts with $cfg['Servers'][1]. Do not use $cfg['Servers'][0]. //You can disable a server config entry by setting host to ''. $i++;


/** * Read configuration from dbconfig-common * You can regenerate it using: dpkg-reconfigure -plow phpmyadmin */ if (is_readable('/etc/phpmyadmin/config-db.php')) { require('/etc/phpmyadmin/config-db.php'); }


/* Configure according to dbconfig-common if enabled / if (!empty($dbname)) { / Authentication type */ $cfg['Servers'][$i]['auth_type'] = 'cookie'; /* Server parameters */ if (empty($dbserver)) $dbserver = 'localhost'; $cfg['Servers'][$i]['host'] = $dbserver;



if (!empty($dbport)) {


 $cfg['Servers'][$i]['connect_type'] = 'tcp';


 $cfg['Servers'][$i]['port'] = $dbport;


}


//$cfg['Servers'][$i]['compress'] = false;


/* Select mysqli if your server has it */


$cfg['Servers'][$i]['extension'] = 'mysqli';


/* Optional: User for advanced features */


$cfg['Servers'][$i]['controluser'] = $dbuser;



 
 
$cfg['Servers'][$i]['controlpass'] = $dbpass;/* 可选: Advanced = $dbname; =,$cfg['Servers'][$i]['relation'] ='pma_table_info';$cfg['Servers'][$i]['table_info'] = ;= ;$cfg['Servers'][$i]['table_coords'] = ;= ;$cfg['Servers'][$i]['designer_coords'] ='pma_designer_coords';= ;

/* Uncomment the following to enable logging in to passwordless accounts,


 * after taking note of the associated security risks. */




//$cfg['Servers'][$i]['AllowNoPassword'] = true ;

/* Advance to next server for rest of config */


$i++;




}
/类型:*/='cookie',/* ='mysql',如果服务器具有 ///$cfg['Servers'][$i]['extension'] =,则为 MySQLi ;/ 可选: 使用高级功能的用户 ///$cfg['Servers'][$i]['controluser'] ='pma';//$cfg['Servers'][$i]['controlpass'] ='pmapass';/ 可选: Advanced = */Uncomment/Uncomment ='pma_designer_coords'/Uncomment =/Uncomment =/Uncomment Uncomment ='pma_relation'Uncomment Uncomment Uncomment accounts accounts 。 *///$cfg['Servers'][$i]['AllowNoPassword'] = true ;
/* * 服务器的配置 */
/* * 目录用于从服务器 */$cfg['UploadDir'] =''中保存/加载文件;$cfg['SaveDir'] ='';
时间: 原作者:

如果你使用的是空密码取消注释:


//$cfg['Servers'][$i]['AllowNoPassword'] = TRUE;



如果你位于独立开发虚拟机内,则是安全的,否则设置密码。

原作者:

我一直在找同样的问题但我想我可以能已经把它分解了。

Solution,如果你在配置完mysql服务器后已经保存了更改,请在配置/文件夹中自动创建文件,然后将它的复制到phpMyAdmin文件夹中,这样就可以解决这个问题。 确保它是写保护的,并删除配置/文件夹。 然后刷新你的浏览器。

为我工作。希望对你有用。

干杯。

...