求助,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中也可以访问数据库。
请问该怎样解决