phpMyAdmin tried to connect to the MySQL server, and the server rejected the connection. You should check the host, uname 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:
#1130 - Host 'shaw' is not allowed to connect to this MySQL server
Host 'shaw' is not allowed to connect to this MySQL server
You should check the host, uname and password in config.inc.php and make sure that they correspond to the information given by the administrator of the MySQL server.
运行,出现以下提示:
phpMyAdmin tried to connect to the MySQL server, and the server rejected the connection. You should check the host, uname 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:
#2002 - Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
我又做了以下工作,出现以下提示:
[root@shaw bin]# mysqladmin ping
mysqladmin: connect to server at 'localhost' failed
error: 'Access denied for user: 'root@localhost' (Using password: NO)'
[root@shaw bin]# mysqld
040610 7:30:36 Warning: Asked for 196608 thread stack, but got 126976
040610 7:30:36 Can't start server: Bind on TCP/IP port: Address already in use040610 7:30:36 Do you already have another mysqld server running on port: 3306 ?
040610 7:30:36 Aborting
040610 7:30:36 mysqld: Shutdown Complete
[root@shaw bin]# mysqld
040610 7:37:55 Warning: Asked for 196608 thread stack, but got 126976
040610 7:37:55 Can't start server: Bind on TCP/IP port: Address already in use040610 7:37:55 Do you already have another mysqld server running on port: 3306 ?
040610 7:37:55 Aborting
040610 7:37:55 mysqld: Shutdown Complete
看起来肯定是我的密码有些问题,但是做如下操作:
[root@shaw bin]# mysql -uroot -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 5 to server version: 4.0.20-standard
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
040610 7:30:36 Warning: Asked for 196608 thread stack, but got 126976
040610 7:30:36 Can't start server: Bind on TCP/IP port: Address already in use040610 7:30:36 Do you already have another mysqld server running on port: 3306 ?
040610 7:30:36 Aborting
看来 MySQL 已经启动了………………
#2002 - Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)