当前位置:Gxlcms > 数据库问题 > navicat远程连接mysql,2003 can't connect to mysql server on 10038

navicat远程连接mysql,2003 can't connect to mysql server on 10038

时间:2021-07-01 10:21:17 帮助过:63人阅读

首先我们通过netstat -an|grep 3306来查看mysql默认的端口3306是否开启,允许哪个ip使用 如果你发现,前面有127.0.0.1,就说明,3306端口只能本机ip使用,我们需要 #打开mysql配置文件vi /etc/mysql/mariadb.conf.d/50-server.cnf 将bind-address = 127.0.0.1注销? #进入mysql,对远程用户进行授权, grant all privileges on *.* to root@% identified by xxxxxx; 这里的root 是你远程登录的用户,xxxxxx是你登录使用的密码,然后可以在mysql数据 表中查看到你这个用户已经被添加到user表中 # 刷新权限 FLUSH PRIVILEGES; # 重启数据库 /etc/init.d/mysql restart

 

navicat远程连接mysql,2003 can't connect to mysql server on 10038

标签:密码   远程服务器   mysql配置   gre   配置文件   远程登录   查看   art   xxxxxx   

人气教程排行