当前位置:网站首页>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';
我们再进行查看

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

边栏推荐
- Shanxi group (enterprises) in the second network security skills competition part problem WP (8)
- labelme的使用技巧
- 22. Why do you need a message queue?What are the advantages of using the message queue?
- 七、自定义配置
- 【 notes 】 the beauty of the software engineering - column 31 | software testing are responsible for the quality of products?
- L2-025 分而治之
- [Linear table] - Detailed explanation of three practice questions of LeetCode
- KubeMeet Registration | The complete agenda of the "Edge Native" Online Technology Salon has been announced!
- file system two
- Go study notes (84) - Go project directory structure
猜你喜欢

六、读取应用配置+日志配置

webService接口

Classification of decision tree classification

2.4 hill sorting

The Complete Go Books - Beginner to Advanced and Web Development

Building and sharing the root of the digital world: Alibaba Cloud builds a comprehensive cloud-native open source ecosystem

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

Chapter8 Support Vector Machines

2.6 Radix sort (bucket sort)
![handler+message [message mechanism]](/img/4b/981d5eb2f1afc98a4ceab38c505325.png)
handler+message [message mechanism]
随机推荐
Plan for many situations in the processing chain
Building and sharing the root of the digital world: Alibaba Cloud builds a comprehensive cloud-native open source ecosystem
The Double Pointer Problem (Part 2)
Recursive Optimization of Fibonacci Sequences "Memo Recursion"
1. Get data - requests.get()
gnss rtcm rtklib Ntrip...
C. Qualification Rounds
SaaS多租户数据隔离的三种解决方案
Intermediate - interview questions
22. 为什么需要消息队列?使用消息队列有什么好处?
GCC Rust is approved to be included in the mainline code base, or will meet you in GCC 13
BindingExpression path error: 'selectMenusList' property not found on 'object' ''ViewModel'
Hexagon_V65_Programmers_Reference_Manual(11)
模拟问题(中)
三、依赖配置管理
C# One Week Introductory "C# - Classes and Objects" Day Six
解决go环境编译不了exe
C. Travelling Salesman and Special Numbers (binary + combination number)
(RCE) Remote Code/Command Execution Vulnerability Vulnerability Exercise
1315_Use the LOOPBACK simulation mode to test whether the pyserial installation is successful