文章时间:2020年11月20日 01:32:04 解决问题:使用Navicat连接MySQL,直接报错服务器不让连接
关联类似问题文章 1、Mysql8.0 远程连接用户配置 2、利用Navicat远程连接宝塔Mysql中的所有数据库(root用户) 3、Navicat连接MySQL时弹出:1045:Access denied for user ‘root’@’localhost’ 4、docker安装mysql及navicat远程连接
[root@centos]# mysql -u root -p
Enter password:
use mysql;
select host from user where user='root';
修改帐号不允许从远程登陆,只能在localhost。这个时候只要在localhost的那台电脑,登入MySQL后后,更改 "mysql" 数据库里的 "user" 表里的 "host" 项,从"localhost"改称"%"
update user set host = '%' where user ='root';
重载配置使其生效
flush privileges;
扫码关注腾讯云开发者
领取腾讯云代金券
Copyright © 2013 - 2025 Tencent Cloud. All Rights Reserved. 腾讯云 版权所有
深圳市腾讯计算机系统有限公司 ICP备案/许可证号:粤B2-20090059 深公网安备号 44030502008569
腾讯云计算(北京)有限责任公司 京ICP证150476号 | 京ICP备11018762号 | 京公网安备号11010802020287
Copyright © 2013 - 2025 Tencent Cloud.
All Rights Reserved. 腾讯云 版权所有