'无法通过socket' /var/run/mysqld/mysqld.sock&#39连接到本地MySQL服务器;

时间:2017-08-02 12:18:19

标签: mysql linux sockets ubuntu

安装了一个LAMP堆栈,现在我尝试连接到我的数据库时,我的目的是安装SNIPE-IT,但我对Linux环境有些新意。

请查看我的webmin日志;

/etc/init.d/mysql[9744]: 0 processes alive and '/usr/bin/mysqladmin --defaults-file=/etc/mysql/debian.cnf ping' resulted in

/etc/init.d/mysql[9744]: #007mysqladmin: connect to server at 'localhost' failed

/etc/init.d/mysql[9744]: error: 'Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)'

/etc/init.d/mysql[9744]: Check that mysqld is running and that the socket: '/var/run/mysqld/mysqld.sock' exists!
/etc/init.d/mysql[9744]: 

mysql[9432]:    ...fail!

systemd[1]: mysql.service: Control process exited, code=exited status=1

systemd[1]: Failed to start LSB: Start and stop the mysql database server daemon.

systemd[1]: mysql.service: Unit entered failed state.

systemd[1]: mysql.service: Failed with result 'exit-code'.

更新 - 无法卸载mysql以尝试重新安装。

您可能想要运行' apt-get -f install'纠正这些:以下包具有未满足的依赖项:

mysql-client-5.7:取决于:mysql-client-core-5.7但是不会安装

mysql-server:取决于:mysql-server-5.7但是不会安装

E:未满足的依赖关系。试试&apt-get -f install'没有包(或指定解决方案)。"

0 个答案:

没有答案