centos7 启动mysql服务
时间:2022-03-14 02:15
由于centos 7 抛弃了mysql 转投 mariadb 了直接运行
mysql 命令会出错!
启动mariadb 服务就可以使用mysql命令了
systemctl enable mariadb #设置开机启动 systemctl start mariadb #启动MariaDB systemctl stop mariadb #停止MariaDB systemctl restart mariadb #重启MariaDB
OK!
设置root密码