1.安装
yum install mariadb mariadb-server
2.启动
systemctl start mariadb.service
3.登录mysql,安装完之后默认的是无密码登录,回车即可,登录。
登录mysql
mysql -u root -p
切换数据库
use mysql;
更改远程链接授权
grant all privileges on *.* to 'root'@'%';
4.使用客户端navicat连接设置密码(方便)此时 无密码
开机启动:
MariaDB开机启动
systemctl enable mariadb
MariaDB启动
systemctl start mariadb
service mariadb start
service mariadb stop
service mariadb restart
service mariadb status
重启服务:
sudo systemctl restart mariadb.service