2

mysql切换数据路径无法启动

 3 years ago
source link: https://www.wencst.com/archives/501
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

mysql切换数据路径无法启动

作者: wencst 分类: linux,Uncategorized,数据库 发布时间: 2017-04-01 18:04 阅读: 1,444 次

centos:6.5 mysql:5.1.73

更改my.cnf中数据路径后,mysql无法启动

启动后,启动日志如下:

  • 160523 12:58:03  mysqld started
  • 160523 12:58:03 [Warning] Can’t create test file /home/mysql/localhost.lower                                                                                        -test
  • 160523 12:58:03 [Warning] Can’t create test file /home/mysql/localhost.lower                                                                                        -test
  • /usr/libexec/mysqld: Can’t change dir to ‘/home/mysql/’ (Errcode: 13)
  • 160523 12:58:03 [ERROR] Aborting
  • 160523 12:58:03 [Note] /usr/libexec/mysqld: Shutdown complete

关闭selinux或者将selinux的访问权限设置为permissive模式

如果文章对您有用,扫一下支付宝的红包,不胜感激!

欢迎加入QQ群进行技术交流:656897351(各种技术、招聘、兼职、培训欢迎加入)


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK