Mysql prompt in linux & quot; mysqldeamonfailedtostart & q_MySQL
Source: Internet
Author: User
In linux, mysql prompts "amp; quot; mysqldeamonfailedtostartamp; quot;". The solution is incorrect. bitsCN.com has a linux server and the system is centos.
The website suddenly failed to connect to the database, so a friend directly restarted the server. In cli mode, run service myqsld start to find the error message "mysql deamon failed to start.
#/Etc/init. d/mysqld start
MySQL Daemon failed to start.
Starting mysqld: [FAILED]
View the log file of mysqld
# Less/var/log/mysqld. log
/Usr/libexec/mysqld: Can't change dir to 'XXX' (Errcode: 13)
First, View database logs.
Mysqld started
[Warning] Can't create test file xxx. lower-test
[Warning] Can't create test file xxx. lower-test
/Usr/libexec/mysqld: Can't change dir to '/xxx' (Errcode: 13)
[ERROR] Aborting
First, check the permissions and users of the data directory and log Directory. the permissions and users are correct. it should be the SELINUX permission restriction.
First, view the current configuration information.
# Getenforce
Enforcing
SELinux is enabled. you only need to disable SELinux.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service