The mysqld configuration file my.cnf An
[mysqld_safe]
entry that was specified within the configuration block
log-error
, causing the mysqld service to start an error because the log file could not be found.
service mysql restart Shutting down MySQL.. [ OK ]Starting MySQL.180306 16:26:49 mysqld_safe error: log-error set to ‘/var/lib/mysql/mysql.log‘, however file don‘t exists. Create writable for user ‘mysql‘.The server quit without updating PID file (/var/lib/mysql//[FAILED]caldomain.pid).
This problem is a small bug for MySQL.
The temporary processing method is to create a log-error specified empty file directly, and give the appropriate owner, group permissions.
Problem page: https://bugs.mysql.com/bug.php?id=84427
The issue has been fixed in the release 5.5.55, 5.6.36, 5.7.18, 8.0.1
.
Later, you can fix the problem by upgrading the version.
MySQL configuration file specifies the Log-error configuration item, starting an error problem