问题:
$sudo systemctl start mysqld
Job for mariadb.service failed because the control process exited with error code.
See "systemctl status mariadb.service" and "journalctl -xe" for details.
$sudo systemctl status mariadb.service
解决方法:
$cd /var/lib/mysql
$ls
$rm -r *
$ls
$mysql_install_db --user=mysql --basedir=/usr --datadir=/var/lib/mysql
—恢复出厂设置
$sudo systemctl start mysqld
$sudo systemctl start mysql.service
$sudo systemctl start mariadb.service
$ sudo systemctl status mariadb.service