yum命令安装mariadb
Last updated
Last updated
yum -y install mariadb mariadb-server
##ubuntu18.04下安装mariaDB
# apt-get install mariadb-server
# apt-get install mysql-server-5.7
systemctl start mariadb
systemctl enable mariadb
mysql_secure_installation
grant all privileges on *.* to 'root'@'%' identified by '123456' with grant option;
flush privileges;