服务器部署之–mysql
一、环境
1、centos7.6/aliyun服务器
二、安装步骤
1、官网下载地址:http://dev.mysql.com/downloads/mysql/
三、出现的问题
1、如果不能远程连接
-
查询需要修改的记录
select host, user, password from user where host='localhost' and user='root';
-
更新
update user set host='%' where host='localhost' and user='root';
-
刷新权限
FLUSH PRIVILEGES;