当前位置:网站首页>mysql cannot connect remotely Can't connect to MySQL server on 'xxx.xxx.xxx.xxx' (10060 "Unknown error")
mysql cannot connect remotely Can't connect to MySQL server on 'xxx.xxx.xxx.xxx' (10060 "Unknown error")
2022-07-30 05:08:00 【Pai Xiaoxing】
Many friends have installed mysql on their servers, and then found that they have turned on the mysql service in the server, and then turned off the firewall, but they can't connect, and then use the user to log in. The password is also entered correctly, but it isCan't connect, and prompts this error

At this time, it was found that because the host only set the local connection, it needs to be modified to connect
Enter the database
mysql -u root -p
Enter the root password to enter the database
use mysql;Use this library of mysql

Check the user's host
select host,user from user;
At this time, I found that the host of my adai user can only be connected locally. At this time, I need to change it to %, so that others can use this account to connect
update user set host='%' where user='adai';
Let's check again

The modification has been completed at this time, and the connection can be successfully connected at this time

边栏推荐
- 涂鸦Wi-Fi&BLE SoC开发幻彩灯带
- [3D Detection Series-PointRCNN] Reproduces the PointRCNN code, and realizes the visualization of PointRCNN3D target detection, including the download link of pre-training weights (starting from 0 and
- 如何与墨西哥大众VW Mexico建立EDI连接
- Compound Types--references, pointers
- Excellent MySQL interview questions, 99% must ask in preparation for August!I can't pass the interview
- [Vitis] Code implementation of ZCU102 development board PS-side control PL-side reset
- Learning of redis_Basic part
- 聊一聊什么是SaaS,以及遇到的问题......
- Simulation problem (middle)
- Protobuf compound data types, speaking, reading and writing
猜你喜欢

Usage of EFR32 as sniffer for Zigbee/Thread

VisualStudio2022本地调试进入特别慢问题解决

Record of problems encountered by the pyinstaller packager

3. Dependency configuration management

美国再次加息75个基点 陷入“技术性衰退”?加密市场却呈现复苏力量

The Azure developer news 丨 memorabilia in July

How with Mexico Volkswagen VW EDI connection to Mexico
![[High Performance Computing] openMP](/img/a5/2cfd760a26edb379d337eb3d1605d5.jpg)
[High Performance Computing] openMP

Hexagon_V65_Programmers_Reference_Manual(11)

复现XXL-JOB 任务调度中心后台任意命令执行漏洞
随机推荐
A must see for software testers!Database knowledge MySQL query statement Daquan
handler+message [message mechanism]
VisualStudio2022 local debugging entry is particularly slow problem solving
Detailed explanation of REUSE_ALV_GRID_DISPLAY
三、依赖配置管理
动态规划问题(完结篇)
小程序使用npm包定制全局样式
Recursive Optimization of Fibonacci Sequences "Memo Recursion"
Predictive maintenance scheduling of multiple power equipment based on data-driven fault prediction
std::vector中保存指针时用法
Web page element parsing a tag
LeetCode Algorithm 328. 奇偶链表
Acwing perfect number
gnss rtcm rtklib Ntrip...
C语言实现安全性极高的游戏存档并读档
2.6 Radix sort (bucket sort)
22. Why do you need a message queue?What are the advantages of using the message queue?
双指针问题(中)
(RCE) Remote Code/Command Execution Vulnerability Vulnerability Exercise
How with Mexico Volkswagen VW EDI connection to Mexico