当前位置:网站首页>mysql无法远程连接 Can‘t connect to MySQL server on ‘xxx.xxx.xxx.xxx‘ (10060 “Unknown error“)
mysql无法远程连接 Can‘t connect to MySQL server on ‘xxx.xxx.xxx.xxx‘ (10060 “Unknown error“)
2022-07-30 04:53:00 【派小兴 ҈҉҈҉҈҉҈҉҈】
很多小伙伴在自己的服务器上面安装了mysql,然后发现自己把服务器中的mysql服务打开,然后防火墙也关掉了,但是就是连接不上,然后使用用户登录,密码也输入正确但是就是连不上,并且提示这个错误

这时候发现是因为host只设定了本地连接,需要修改才能进行连接
进入数据库
mysql -u root -p
输入完root的密码进入到数据库
use mysql;使用到mysql的这个库

查看一下user的host
select host,user from user;
这时候就发现我这个adai这个用户他的host只能是本地连接,这时候就需要把他改成%,就可以让别人用这个账号进行连接
update user set host='%' where user='adai';
我们再进行查看

这时候已经修改完成了,这时候在进行连接就可以连接成功了

边栏推荐
- WPF study notes "WPF Layout Basics"
- VisualStudio2022 local debugging entry is particularly slow problem solving
- webService interface
- 5. View parsing and template engine
- Protobuf compound data types, speaking, reading and writing
- webService接口
- SaaS多租户数据隔离的三种解决方案
- 成为一个合格的网安,你知道这些吗?
- Naive Bayes Classification
- Classification of decision tree classification
猜你喜欢
![[MRCTF2020]Hello_ misc](/img/ea/0faacf6e544b60e3459d8ace4d5f42.png)
[MRCTF2020]Hello_ misc

1315_Use the LOOPBACK simulation mode to test whether the pyserial installation is successful

mysql isolation level

Hexagon_V65_Programmers_Reference_Manual(14)

Web page element parsing a tag

Golang channel implementation principle
![[MRCTF2020]Hello_misc](/img/ea/0faacf6e544b60e3459d8ace4d5f42.png)
[MRCTF2020]Hello_misc

Learning of redis_Basic part

std::vector中保存指针时用法

labelme的使用技巧
随机推荐
软件测试员必看!数据库知识mysql查询语句大全
mysql isolation level
山西省第二届网络安全技能大赛(企业组)部分赛题WP(七)
POJ1321 棋盘问题(详解)
三、依赖配置管理
2.6 Merge Sort
全流程调度——Azkaban入门与进阶
斐波那契数列的递归优化《备忘录递归》
复现XXL-JOB 任务调度中心后台任意命令执行漏洞
字符串问题(上)
GO语言学习笔记一
Intermediate - interview questions
Excellent MySQL interview questions, 99% must ask in preparation for August!I can't pass the interview
聊一聊什么是SaaS,以及遇到的问题......
String Problem (Part 1)
webService interface
protobuf 中复合数据类型的读写
Golang eight-legged text finishing (continuous handling)
1315_Use the LOOPBACK simulation mode to test whether the pyserial installation is successful
需求设计文档和产品经理的角色改变