CentOS yum 安装mysql 并配置远程连接
1.安装yum -y install mariadb-server mariadb mariadb-devel2.启动systemctl restart mariadb3.登录 输完命令直接回车 不输密码mysql -uroot -p4.设置密码SET PASSWORD FOR 'root'@'localhost' = PASSWORD('123456');5.授权GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTI