phpMyAdmin打开数据库时提示下面错误,救命

phpMyAdmin打开数据库时提示下面错误,救命

Welcome to phpMyAdmin 2.5.4

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)

[Documentation]
Please check your Mysql server status!

code: service mysqld status

if not connect,Please reinstall your Mysql!

ok!
不是MySQL没起动,应该是权限问题或者根本没建MySQL的库。
mysql是启动的,找不出原因就重新安安装了
别忘了建库:
#mysql_install_db
这句加在哪个文件中呢?
不是加在那个文件,这是个脚本,你要运行它。