|
|
昨天装上httpd+php+mysql
今天想弄一个phpmyadmin来管理数据库
无奈中。无论如何也配置不对,请大侠指点
首先,修改config.inc.php文件的部分内容
$cfg['Servers'][$i]['host'] = 'localhost'; // MySQL hostname or IP address
$cfg['Servers'][$i]['port'] = ''; // MySQL port - leave blank for default port
$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'; // The php MySQL extension to use ('mysql' or 'mysqli')
$cfg['Servers'][$i]['compress'] = FALSE; // Use compressed protocol for the MySQL connection
// (requires PHP >= 4.3.0)
$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'] = 'cookie'; // Authentication method (config, http or cookie based)?
$cfg['Servers'][$i]['user'] = 'root'; // MySQL user
$cfg['Servers'][$i]['password'] = ''; // MySQL password (only needed
// with 'config' auth_type)
然后连接http://localhost/phpmyadmin/
出现如下图所示
<img src="http://www.linuxsir.cn/bbs/attachment.php?attachmentid=24092&stc=1"/>
晕倒了。。这是什么密码?
配置文件现在需要绝密的短语密码(blowfish_secret)。
无奈中,再去config.inc.php文件中查找blowfish_secret,找到这一行
$cfg['blowfish_secret'] = '';
随便改了个
$cfg['blowfish_secret'] = '111';
再连接,显示如下
<img src="http://www.linuxsir.cn/bbs/attachment.php?attachmentid=24093&stc=1"/>
输入用户名root密码空(我没设密码)
点登 陆
出现如下画面
<img src="http://www.linuxsir.cn/bbs/attachment.php?attachmentid=24094&stc=1"/>
错误:
#2002 - 服务器没有响应 (or the local MySQL server's socket is not correctly configured)
首先我确定我的mysql服务器是启动了。。
现在应该怎么办,才能正常连接上呀?
还有发贴子的时候怎么在文章中间贴图呀?:)弄了半天,也没弄到文章中间去,呵呵,太糗了 |
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有帐号?注册
x
|