思路话语

。Arlen:思想有多远你就能走多远...

phpmyadmin安装需要注意的地方

复制php\ext文件夹下的php_mysql.dll和php文件夹下的libmysql.dll复制到c:\windows\system32

六、最后配置phpmyadmin,复制phpmyadmin到网站根目录,修改phpmyadmin的config.inc.php文件,注意红色注释的内容
$cfg['Servers'][$i]['host'] = 'localhost'; // Mysql服务器名或ip地址
$cfg['Servers'][$i]['port'] = ''; // MySQL 服务端口,这里留空表示使用默认端口
$cfg['Servers'][$i]['socket'] = ''; // Path to the socket - leave blank for default socket
$cfg['Servers'][$i]['connect_type'] = 'tcp'; // How to connect to MySQL server ('tcp' or 'socket')
$cfg['Servers'][$i]['extension'] = 'mysql'; // mysql扩展
$cfg['Servers'][$i]['compress'] = FALSE; // Use compressed protocol for the MySQL connection
$cfg['Servers'][$i]['controluser'] = ''; // MySQL control user settings
// (this user must have read-only
$cfg['Servers'][$i]['controlpass'] = ''; // access to the "mysql/user"
// and "mysql/db" tables).
// The controluser is also
// used for all relational
// features (pmadb)
$cfg['Servers'][$i]['auth_type'] = 'config'; // 身份验证方式(config, http or cookie based)
$cfg['Servers'][$i]['user'] = 'root'; // 用户名,这里使用root
$cfg['Servers'][$i]['password'] = ''; // 密码,第一次使用,也留空,以后更改mysql的root密码以后,再修改


注意这行:
$cfg['Servers'][$i]['auth_type'] = 'config'; // 身份验证方式(config, http or cookie based)
这里一定要改成config,否则,在数据库空密码的情况下登进去了在点击其它链接引起回发后也会跳回来。

posted on 2009-12-07 14:35  Arlen  阅读(155)  评论(0编辑  收藏  举报

导航