mysql无法开启,报错:MySQL Daemon failed to start.

[root@iZ2ze95j380ruia8of0lolZ /root]#service mysqld start
MySQL Daemon failed to start.
Starting mysqld:                                           [FAILED]
[root@iZ2ze95j380ruia8of0lolZ /root]#service mysqld stop
Stopping mysqld:                                           [  OK  ]
[root@iZ2ze95j380ruia8of0lolZ /root]#service mysqld restart
Stopping mysqld:                                           [  OK  ]
MySQL Daemon failed to start.
Starting mysqld:                                           [FAILED]
[root@iZ2ze95j380ruia8of0lolZ /root]#vim /etc/my.cnf
[root@iZ2ze95j380ruia8of0lolZ /root]#service mysqld restart
Stopping mysqld:                                           [  OK  ]
Starting mysqld:                                           [  OK  ]
[root@iZ2ze95j380ruia8of0lolZ /root]#
可能是buffer pool太大,打开my.cnf:vim /etc/my.cnf

将128M改为50M。
[mysqld]
#
# Remove leading # and set to the amount of RAM for the most important data
# cache in MySQL. Start at 70% of total RAM for dedicated server, else 10%.
# innodb_buffer_pool_size = 128M
innodb_buffer_pool_size = 50M

 

你可能感兴趣的:(mysql无法开启,报错:MySQL Daemon failed to start.)