求助,php+mysql新手问题
自己的机器上,前几天安装mysql后,安装了vbb3.01论坛,没有更改root密码。昨天晚上启动后php无法访问数据库。
phpmyadmin显示
代码:--------------------------------------------------------------------------------
Welcome to phpMyAdmin 2.5.7
phpMyAdmin tried to connect to the MySQL server, and the server rejected the connection. You should check the host, username and password in config.inc.php and make sure that they correspond to the information given by the administrator of the MySQL server.
Error
MySQL said:
#2004 - Can't create TCP/IP socket (10106)
[Documentation]
--------------------------------------------------------------------------------
config.inc.php文件中用户名及密码设置为默认
代码:--------------------------------------------------------------------------------
$cfg['Servers'][$i]['user'] = 'root'; // MySQL user
$cfg['Servers'][$i]['password'] = '';
--------------------------------------------------------------------------------
但是执行
C:\>C:\mysql\bin\mysqlshow
会显示数据库结构
+-----------+
| Databases |
+-----------+
| cneportal |
| mysql |
| test |
+-----------+
而且EMS MySQL Manager 2中也可以访问数据库。
请问该怎样解决
问题点数:50、回复次数:4Top
1 楼sfply(随风飘零叶)回复于 2004-07-03 17:14:59 得分 10
VBB会否修改了你的ROOT密码Top
2 楼ccterran(iwind)回复于 2004-07-03 18:19:31 得分 10
主机地址设对了吗Top
3 楼boyu(笨鱼)回复于 2004-07-04 08:22:14 得分 10
phpmyadmin 没设置对,你再看看!
把IP地址 改成 127.0.0.1
Top
4 楼52juanjuan(Fibona)回复于 2004-07-04 09:21:04 得分 20
应该是phpmyadmin中主机地址没有设置对的原故Top




