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

边栏推荐
- VisualStudio2022本地调试进入特别慢问题解决
- Predictive maintenance scheduling of multiple power equipment based on data-driven fault prediction
- Code open source design and implementation ideas
- [MRCTF2020]Hello_misc
- nSoftware.PowerShell.Server.2020
- Discourse Custom Header Links
- 1. Get data - requests.get()
- WPF study notes "WPF Layout Basics"
- POJ1321 chessboard problem (detailed explanation)
- 模拟问题(上)
猜你喜欢
![[C language] Program environment and preprocessing](/img/d2/a0437da7d651e755951dd2a15827cf.png)
[C language] Program environment and preprocessing

Alibaba Cloud's EasyNLP Chinese text image generation model takes you to become an artist in seconds

Divide and conquer. L2-025

WPF study notes "WPF Layout Basics"

Recursive Optimization of Fibonacci Sequences "Memo Recursion"

Web page element parsing a tag

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

Perspective transformation matrix of image perspective correction should be matrix (single)/findHomography with getPerspectiveTransformd difference

Verify that the addShutdownHook hook takes effect

Acwing perfect number
随机推荐
js operation to add or subtract from the current date (day, week, month, year)
Go study notes (84) - Go project directory structure
(Hexagon_V65_Programmers_Reference_Manual(13)
Catch That Cow(详解)
Double pointer problem (middle)
Unity踩坑记录 —— GetComponent的使用
The Double Pointer Problem (Part 1)
Summary of skills in using ms project2010 project management software
三、依赖配置管理
Get the local IP and Request's IP
Simulation Problem (Part 1)
Golang eight-legged text finishing (continuous handling)
【Verilog】HDLBits题解——Circuits/Combinational Logic
Hexagon_V65_Programmers_Reference_Manual(12)
go语言学习笔记四
Web page element parsing a tag
Detailed explanation of REUSE_ALV_GRID_DISPLAY
Predictive maintenance scheduling of multiple power equipment based on data-driven fault prediction
WPF recursively obtains the list of specified control types in the form
LeetCode Algorithm 2326. 螺旋矩阵 IV