MySQL—Mysql与MariaDB启停命令的区别
MySQL
MySQL启动
service mysqld start
或者/bin/systemctl start mysqld.service
MySQL状态
service mysqld status
或者/bin/systemctl status mysqld.service
MySQL停止
service mysqld stop
或者/bin/systemctl stop mysqld.service
MySQL重启
service mysqld restart
或者/bin/systemctl restart mysqld.service
MariaDB
MariaDB启动
service mariadb start
或者/bin/systemctl start mariadb.service
MariaDB状态
service mariadb status
或者/bin/systemctl status mariadb.service
MariaDB停止
service mariadb stop
或者/bin/systemctl stop mariadb.service
MariaDB重启
service mariadb restart
或者/bin/systemctl restart mariadb.service
Q&A
Failed to restart mysqld.service: Unit not found
??这种情况一般会在mariadb环境中用service mysqld restart
命令启动数据库而出现。
解决方案:我们只需要在mariadb数据库环境中使用service mariadb restar
命令启动数据库即可。
相关推荐
Gexrior 2020-10-22
Lostinthewoods 2020-10-29
txt 2020-06-14
azhou 2020-06-12
hungzz 2020-06-11
CharlesYooSky 2020-06-05
aliuge 2020-06-03
URML 2020-05-30
lwwishes 2020-05-29
83173052 2020-05-29
tanyhuan 2020-05-28
muzirigel 2020-05-26
饮马天涯 2020-05-20
aliuge 2020-05-12
83173052 2020-05-10
Mrbianxin 2020-05-07
InJavaWeTrust 2020-05-04