欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  数据库

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

程序员文章站 2022-06-17 20:49:59
...

对操作系统重新安装后,无法启动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/