mysql server无法正常启动问题排查
在安装mysql的时候,踩了一个坑,启动mysql服务的时候,提示 Job for mysqld.service failed because the control process exited with error code. See "systemctl status mysqld.service" and "journalctl -xe" for details.
一开始在网上查找这个报错资料的时候,说是3306端口被占用,可以输入 ps -aux|grep mysql
去查看进程,然后使用kill命令将进程杀掉。但是排查过程中,我的3306端口并没有被占用。
那么我们按照提示,输入 journalctl -xe
查看详细信息
我们通过关键字看到的libaio.so.1: cannot open shared object file
说是缺少libaio的包,因此我们安装了libaio包。
可以输入whereis libaio.so.1
查看是否安装,如果跟我一样没有的话,可以使用yum install libaio
安装