1. Start mysql and report an error
service mysqld start
Redirecting to /bin/systemctl start mysqld.service
Job for mysqld.service failed because the control process exited with error code. See "systemctl status mysqld.service" and "journalctl -xe" for details.
2. Analyze error messages
journalctl -xe
3. Solution
chown mysql:mysql -R /var/lib/mysql
4. Start the mysql service
service mysqld start