无法连接到MySQL 5.7服务器

时间:2018-11-15 17:44:38

标签: mysql mysql-5.7

我的服务器运行良好,突然间我开始遇到以下错误。我也无法通过phpmyadmin访问我的数据库。对我来说这是一个新问题,我对那里的所有信息有些困惑。

ERROR 2002(HY000):无法通过套接字'/var/run/mysqld/mysqld.sock'(2)连接到本地MySQL服务器

/etc/mysql/mysql.conf.d/mysqld.cnf

#log_bin                        = /var/log/mysql/mysql-bin.log expire_logs_days        = 10 max_binlog_size   = 100M
#binlog_do_db           = include_database_name
#binlog_ignore_db       = include_database_name
#
# * InnoDB
#
# InnoDB is enabled by default with a 10MB datafile in /var/lib/mysql/.
# Read the manual for more InnoDB related options. There are many!
#
# * Security Features
#
# Read the manual, too, if you want chroot!
# chroot = /var/lib/mysql/
#
# For generating SSL certificates I recommend the OpenSSL GUI "tinyca".
#
# ssl-ca=/etc/mysql/cacert.pem
# ssl-cert=/etc/mysql/server-cert.pem
# ssl-key=/etc/mysql/server-key.pem

0 个答案:

没有答案