当前位置:Gxlcms > mysql > 安装fc17后,mysql启动错误问题解决<转>

安装fc17后,mysql启动错误问题解决<转>

时间:2021-07-01 10:21:17 帮助过:5人阅读

对操作系统重新安装后,无法启动MySQL。运行status查看出现下面的错误 1 2 3 4 5 6 7 8 9 # systemctl status mysqld.service mysqld.service - MySQL database server Loaded: loaded (/lib/systemd/system/mysqld.service; enabled) Active: failed since

对操作系统重新安装后,无法启动MySQL。运行status查看出现下面的错误

1
2
3
4
5
6
7
8
9
# systemctl status mysqld.service
mysqld.service - MySQL database server
Loaded: loaded (/lib/systemd/system/mysqld.service; enabled)
Active: failed since Tue, 15 Nov 2011 10:55:37 +0000; 17s ago
Process: 1433 ExecStartPost=/usr/libexec/mysqld-wait-ready $MAINPID (code=exited, status=0/SUCCESS)
Process: 9490 ExecStart=/usr/bin/mysqld_safe --nowatch --basedir=/usr (code=exited, status=127)
Process: 9474 ExecStartPre=/usr/libexec/mysqld-prepare-db-dir (code=exited, status=0/SUCCESS)
Main PID: 1430 (code=exited, status=0/SUCCESS)
CGroup: name=systemd:/system/mysqld.service
原因是:mysql版本比原来的版本低。
安装remi repo库,

1
2
3
4
rpm -Uvh http://rpms.famillecollet.com/remi-release-17.rpm
yum --enablerepo=remi update mysql mysql-server -y

systemctl start mysqld.service

http://netstu.5iunix.net/archives/201206-473/

人气教程排行