因为公司调试用的虚拟机在笔记本上部署的,很久没用了,今天开发老哥做了平台的更新上虚拟机测试发现数据库无法连接,于是喊我搞一下虚拟机。
[root@localhost ~]# ps -aux|grep mysql
然后发现啥都没有
[root@localhost ~]# systemctl start mysqld.service
Job for mysqld.service failed because the control process exited with error code. See "systemctl status mysqld.service" and "journalctl -xe" for details.
启动就报错了
用status查看一下
[root@localhost mysqld]# systemctl status mysqld.service
● mysqld.service - MySQL Server
Loaded: loaded (/usr/lib/systemd/system/mysqld.service; enabled; vendor preset: disabled)
Active: failed (Result: start-limit) since Sat 2019-08-24 17:42:53 CST; 5s ago
Docs: man:mysqld(8)
http://dev.mysql.com/doc/refman/en/using-systemd.html
Process: 6030 ExecStart=/usr/sbin/mysqld --daemonize --pid-file=/var/run/mysqld/mysqld.pid $MYSQLD_OPTS (code=exited, status=1/FAILURE)
Process: 6013 ExecStartPre=/usr/bin/mysqld_pre_systemd (code=exited, status=0/SUCCESS)
Aug 24 17:42:52 localhost.localdomain systemd[1]: Failed to start MySQL Server.
Aug 24 17:42:52 localhost.localdomain systemd[1]: Unit mysqld.service entered failed state.
Aug 24 17:42:52 localhost.localdomain systemd[1]: mysqld.service failed.
Aug 24 17:42:53 localhost.localdomain systemd[1]: my