当前位置:网站首页>Host is not allowed to connect to this MySQL server
Host is not allowed to connect to this MySQL server
2022-06-28 07:44:00 【The Ar1ene】
Preface
I have seen some tutorial methods on the Internet about this problem , Because I am more inclined to be more detailed and understand , So we will record the operation steps together during the operation
Tips : The following is the main body of this article , The following cases can be used for reference
One 、 Reasons for reporting errors ?
English translation --- ‘ The host is not allowed to connect to this MySQL The server ’ ( This means that the local account connection can log in , But remote login doesn't work )
Two 、 Solution steps
1. open cmd Enter into php Of bin file
( If the system environment variables are configured, you can ignore the first one and directly perform the following operations through the command line )
2. The following commands are executed in sequence
The code is as follows ( Example ):
1):mysql -u root -p This step is to connect to the database , Input password ( Usually the original password )
![]()
2):use mysql;

3): update user set host = '%' where user = 'root';

4) : FLUSH PRIVILEGES;

summary
Last :
Unity is power , Sharing is to review the old and know the new .
边栏推荐
- Redis one master multi slave cluster setup
- Kubernetes theoretical basis
- Section 9: dual core startup of zynq
- What is EC blower fan?
- Safety training is the greatest benefit for employees! 2022 induction safety training for new employees
- 剑指Offer||:链表(简单)
- Design of DSP image data stream
- 代码提交规范
- Dbeaver 22.1.1 release, visual database management platform
- Es data export CSV file
猜你喜欢

Sword finger offer|: linked list (simple)

vite2.9 中指定路径别名

Section 9: dual core startup of zynq

SOC timer and interrupt configuration

Open62541 import nodeset file directly

Rediscluster cluster mode capacity expansion node

Path alias specified in vite2.9

PLC -- Notes

Modifying MySQL user name root under Linux

asp. Net upload image path and image name
随机推荐
At 19:00 on Tuesday evening, the 8th live broadcast of battle code Pioneer - how to participate in openharmony's open source contribution in multiple directions
GoLand IDE and delve debug Go programs in kubernetes cluster
linux下修改mysql用户名root
Soft test -- software designer -- database design of afternoon questions
Es data export CSV file
Sentinel mechanism of redis cluster
MMR rearrangement (similarity is calculated by editing distance and repeatability)
Makefile
flex布局
HJ base conversion
Leetcode learning records
Design and implementation of spark offline development framework
Modifying MySQL port number under Linux
一个小工具可以更快的写爬虫
腾讯下半年继续裁员,所有事业群至少缩减 10%,对此你怎么看?关注者
Dbeaver 22.1.1 release, visual database management platform
Co process, asyncio, asynchronous programming
数字藏品市场“三大套路”
asp. Net datalist when there are multiple data displays
How to configure DDR3 of dm8148