centos7 怎么重启mysql5.7
发布网友
发布时间:2022-04-09 18:25
我来回答
共1个回答
热心网友
时间:2022-04-09 19:54
1、可以将mysqld放到/etc/init.d
用/etc/init.d/mysqld restart命令重启
(cp mysql-5.5.31/support-files/mysql.server /etc/init.d/mysqld)
2、或者用systemctl
systemctl restart mysql
或者
systemctl restart mariadb
3、service mysql restart
service mariadb restart