执行命令以启动mysql服务失败,无法启动mysql服务器。
[root@localhost]# service mysqld restart
Stopping mysqld: [ OK ]
MySQL Daemon failed to start.
Starting mysqld: [FAILED]在这上面跑了一圈
我有mysql-server 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我想这段话现在是有关联的
下面是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发布于 2011-02-09 21:36:19
发布于 2011-02-09 20:00:39
您是否尝试过从根控制台启动mysqld_safe以检查其输出?
发布于 2011-02-09 20:17:53
/var/log/mysqld.log需要说什么?
https://serverfault.com/questions/233496
复制相似问题