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命令启动数据库而出现。

Mysql与MariaDB启停命令的区别

解决方案:我们只需要在mariadb数据库环境中使用service mariadb restar命令启动数据库即可。

上一篇 Nginx _Apache_php_WordPress_宝塔面板开启Gzip及测试方法
下一篇 python 真的有望告别 GIL 全局解释器锁?
泡泡

泡泡

做最好的知识分享 CSDN云计算领域优质创作者,2022新星计划算法赛道实力新星 算法/云计算/云原生

本月创作热力图