关于无法开启mysqld的说明-网上找到教程的

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了关于无法开启mysqld的说明-网上找到教程的相关的知识,希望对你有一定的参考价值。

开机之后,发现无法登陆mysql

[[email protected] ~]# mysql -hlocalhost -uroot -p123456
mysql: [Warning] Using a password on the command line interface can be insecure.
ERROR 2002 (HY000): Can‘t connect to local MySQL server through socket ‘/var/lib/mysql/mysql.sock‘ (111)

查看mysql状态,没有起来
[[email protected] ~]# systemctl status mysqld
● mysqld.service - SYSV: MySQL database server.
Loaded: loaded (/etc/rc.d/init.d/mysqld; bad; vendor preset: disabled)
Active: failed (Result: exit-code) since 一 2018-05-07 18:55:45 CST; 3min 10s ago
Docs: man:systemd-sysv-generator(8)
Process: 995 ExecStart=/etc/rc.d/init.d/mysqld start (code=exited, status=1/FAILURE)

5月 07 18:55:37 localhost.localdomain systemd[1]: Starting SYSV: MySQL database server....
5月 07 18:55:45 localhost.localdomain mysqld[995]: MySQL Daemon failed to start.
5月 07 18:55:45 localhost.localdomain mysqld[995]: Starting mysqld: [失败]
5月 07 18:55:45 localhost.localdomain systemd[1]: mysqld.service: control process exited, code=exite...s=1
5月 07 18:55:45 localhost.localdomain systemd[1]: Failed to start SYSV: MySQL database server..
5月 07 18:55:45 localhost.localdomain systemd[1]: Unit mysqld.service entered failed state.
5月 07 18:55:45 localhost.localdomain systemd[1]: mysqld.service failed.
Hint: Some lines were ellipsized, use -l to show in full.

[[email protected] run]# mkdir -p /var/run/mysqld
[[email protected] run]# chown mysql.mysql mysqld
[[email protected] run]# systemctl start mysqld
开启成功!

以上是关于关于无法开启mysqld的说明-网上找到教程的的主要内容,如果未能解决你的问题,请参考以下文章

win10开启ahci后无法启动系统怎么办

nginx开启gzip的一个小坑

linux 下mysql 服务无法开启

linux 下mysql 服务无法开启

vivo Z3的Usb调试模式在哪里,开启vivo Z3Usb调试模式的教程

mysql慢查询配置