Remi Repo Mysql 服务器未启动

Remi Repo Mysql 服务器未启动

执行启动mysql服务的命令,无法启动mysql服务器。

[root@localhost]# service mysqld restart
Stopping mysqld:                                           [  OK  ]
MySQL Daemon failed to start.
Starting mysqld:                                           [FAILED]

运行 strace

我有 mysql mysql-server php php-mysql 全部来自 remi 以获取最新的 centos 可用版本

这是我的 my.cnf 文件

[mysqld]
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock
user=mysql
# Default to using old password format for compatibility with mysql 3.x
# clients (those using the mysqlclient10 compatibility package).
old_passwords=1

# Disabling symbolic-links is recommended to prevent assorted security risks;
# to do so, uncomment this line:
# symbolic-links=0

[mysqld_safe]
log-error=/var/log/mysqld.log
pid-file=/var/run/mysqld/mysqld.pid

我认为 strace 现在已链接到评论中

这是 mysql_safe 的转储

[root@localhost var]# mysqld_safe
110209 15:11:47 mysqld_safe Logging to '/var/log/mysqld.log'.
110209 15:11:47 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
110209 15:11:52 mysqld_safe mysqld from pid file /var/run/mysqld/mysqld.pid ended

答案1

答案2

您是否尝试过mysqld_safe直接从根控制台启动来检查其输出?

答案3

/var/log/mysqld.log 说了什么?

相关内容