/usr/libexec/mysqld: File './mysql

WBOY
풀어 주다: 2016-06-07 15:27:04
원래의
1336명이 탐색했습니다.

150214 00:19:30 mysqld_safe Starting mysqld daemon with databases from /data/mysql 150214 0:19:30 [Warning] Can't create test file /data/mysql/localhost.lower-test 150214 0:19:30 [Warning] Can't create test file /data/mysql/localhost.lower

150214 00:19:30 mysqld_safe Starting mysqld daemon with databases from /data/mysql
150214  0:19:30 [Warning] Can't create test file /data/mysql/localhost.lower-test
150214  0:19:30 [Warning] Can't create test file /data/mysql/localhost.lower-test
/usr/libexec/mysqld: File './mysql-bin.index' not found (Errcode: 13)
150214  0:19:30 [ERROR] Aborting


150214  0:19:30 [Note] /usr/libexec/mysqld: Shutdown complete


150214 00:19:30 mysqld_safe mysqld from pid file /var/run/mysqld/mysqld.pid ended
150214 00:21:52 mysqld_safe Starting mysqld daemon with databases from /data/mysql
150214  0:21:52 [Warning] Can't create test file /data/mysql/localhost.lower-test
150214  0:21:52 [Warning] Can't create test file /data/mysql/localhost.lower-test
/usr/libexec/mysqld: File './mysql-bin.index' not found (Errcode: 13)
150214  0:21:52 [ERROR] Aborting


150214  0:21:52 [Note] /usr/libexec/mysqld: Shutdown complete


提示./mysql-bin.index无法找到(由于mysql开启了bin日志功能),到数据库根目录查看该文件是存在的,可能是文件权限的问题,查看了数据库根目录的权限是700,所有者和用户组都是root,可能是上次转移数据库的时候不小心修改了文件夹的权限。

解决方法:

chown -R mysql.mysql /data/mysql


重启还是报一样的错,各种折腾,最后定位问题selinux害死人……


관련 라벨:
원천:php.cn
본 웹사이트의 성명
본 글의 내용은 네티즌들의 자발적인 기여로 작성되었으며, 저작권은 원저작자에게 있습니다. 본 사이트는 이에 상응하는 법적 책임을 지지 않습니다. 표절이나 침해가 의심되는 콘텐츠를 발견한 경우 admin@php.cn으로 문의하세요.
인기 튜토리얼
더>
최신 다운로드
더>
웹 효과
웹사이트 소스 코드
웹사이트 자료
프론트엔드 템플릿
회사 소개 부인 성명 Sitemap
PHP 중국어 웹사이트:공공복지 온라인 PHP 교육,PHP 학습자의 빠른 성장을 도와주세요!