在centos7中安装MariaDB 青菜萝卜丁 2019-02-19 安装1yum install -y mariadb-server mariadb 启用与停止1234systemctl start mariadb #启动MariaDBsystemctl stop mariadb #停止MariaDBsystemctl restart mariadb #重启MariaDBsystemctl enable mariadb #设置开机启动 开启远程访问1234mysql -u root -p> GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY 'newpass' WITH GRANT OPTION;> FLUSH PRIVILEGES;> exit;