centos7的mysql怎么重启

2022-08-12 社会 72阅读
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
声明:你问我答网所有作品(图文、音视频)均由用户自行上传分享,仅供网友学习交流。若您的权利被侵害,请联系fangmu6661024@163.com