当前位置:网站首页>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

边栏推荐
- 模拟问题(下)
- 字符串问题(下)
- 双指针问题(下)
- 全流程调度——Azkaban入门与进阶
- Go study notes (84) - Go project directory structure
- Catch That Cow (detailed)
- Using the GPU parallel computing 】 【 OpenCL&OpenCLUtilty GPU parallel computing
- Hexagon_V65_Programmers_Reference_Manual (10)
- [Verilog] HDLBits Problem Solution - Circuits/Combinational Logic
- IGBT wafers used in photovoltaic inverters
猜你喜欢

Using the GPU parallel computing 】 【 OpenCL&OpenCLUtilty GPU parallel computing

Perspective transformation matrix of image perspective correction should be matrix (single)/findHomography with getPerspectiveTransformd difference
![[High Performance Computing] openMP](/img/a5/2cfd760a26edb379d337eb3d1605d5.jpg)
[High Performance Computing] openMP

nSoftware.PowerShell.Server.2020

Us to raise interest rates by 75 basis points in "technical recession"?Encryption market is recovering

IIS网站出现401未授权访问

Excellent MySQL interview questions, 99% must ask in preparation for August!I can't pass the interview

小程序npm包--API Promise化

webService接口

ms project2010项目管理软件使用技巧总结
随机推荐
Catch That Cow (detailed)
Unity stepping on the pit record - the use of GetComponent
[Android development] Splash interface / user agreement and privacy policy pop-up window / interface development
双指针问题(中)
小程序npm包--API Promise化
小程序使用npm包定制全局样式
nSoftware.PowerShell.Server.2020
String problem (below)
Repetition XXL - JOB scheduling center background arbitrary command execution
05 Detailed explanation of the global configuration file application.properties
Whole process scheduling - Azkaban entry and advanced
webService interface
go language study notes 3
gnss rtcm rtklib Ntrip...
复现XXL-JOB 任务调度中心后台任意命令执行漏洞
Seven, custom configuration
Golang eight-legged text finishing (continuous handling)
Intermediate - interview questions
DLL description (1)
Nuxt3 learning