安装LNMP出现打开phpmyadmin错误,管理员大神如何解决?

 打开地址输入用户名和密码后,出现以下错误。

phpMyAdmin - 错误

#2002 - 服务器没有响应 (或者本地 MySQL 服务器的套接字没有正确配置)

欢迎转载,但请保留此信息
[我的Linux,让Linux更易用] CentOS精简版,集成lamp,lnmp版,wdcp,wdcdn,wddns,一键安装包,集群负载均衡LVS,智能DNS/CDN,性能优化
本文连接:http://wdlinux.cn/old/node/151

mysql没安装成功吧? 安装时有没提示什么错误?

mysql没安装成功吧?

安装时有没提示什么错误?

检查下my.cnf的配置文件

检查下my.cnf的配置文件

这是my.cnf的配置

 以下是my.cnf的配置

[client]
port            = 3306
socket          = /tmp/mysql.sock
[mysqld]
port            = 3306
socket          = /tmp/mysql.sock
skip-external-locking
key_buffer_size = 512M
max_allowed_packet = 1M
table_open_cache = 256
sort_buffer_size = 1M
read_buffer_size = 1M
read_rnd_buffer_size = 2M
myisam_sort_buffer_size = 64M
thread_cache_size = 8
query_cache_size= 32M
thread_concurrency = 8
max_connections = 300
wait_timeout = 30
interactive_timeout = 30
max_connect_errors = 9
long_query_time = 1
tmp_table_size = 64M
#log-bin=mysql-bin
#binlog_format=mixed
#server-id      = 1
[mysqldump]
quick
max_allowed_packet = 16M
[mysql]
no-auto-rehash
[myisamchk]
key_buffer_size = 128M
sort_buffer_size = 128M
read_buffer = 2M
write_buffer = 2M
[mysqlhotcopy]
interactive-timeout
 

在重启mysqld服务后出现以下错误

 ERROR! MySQL manager or server PID file could not be found!

Starting MySQL. ERROR! Manager of pid-file quit without updating file.