centos7创建文件夹

时间:2024-10-04 09:29:52编辑:小早

centos7的mysql怎么重启

centos7自带是mariadb,一个mysql的变种。查看有没有安装过:yum list installed mysql*rpm -qa | grep mysql*安装mysql软件(mariadb)yum install mysql*启动mysqlsystemctl start mariadb.service 或者 systemctl start mysqld.service结束systemctl stop mariadb.service 或者 systemctl stop mysqld.service重启systemctl restart mariadb.service 或者 systemctl restart mysqld.service开机自启systemctl enable mariadb.service 或者 systemctl enable mysqld.service


centos7 怎么重启mysql5.7

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


上一篇:颜值高的电视剧推荐

下一篇:没有了