当前位置:网站首页>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 .
边栏推荐
- XML serialization backward compatible
- HJ21 简单密码
- 数字藏品市场“三大套路”
- 大型项目中的Commit Message规范化控制实现
- Tencent continued to lay off staff in the second half of the year, and all business groups reduced by at least 10%. What do you think of this? Followers
- Porting ucosiii to stm32f429
- HJ明明的随机数
- SOC serial port configuration
- HJ explicit random number
- 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
猜你喜欢

golang gin框架进行分块传输

ACM notes

MySQL installation and environment variable configuration

Tencent continued to lay off staff in the second half of the year, and all business groups reduced by at least 10%. What do you think of this? Followers

网传互联网公司加班表,排名第一的没悬念

Kubernetes deploys a secret pit where thanos ruler sends repeated alarms

Design and implementation of spark offline development framework
![[ thanos源码分析系列 ]thanos query组件源码简析](/img/e4/2a87ef0d5cee0cc1c1e1b91b6fd4af.png)
[ thanos源码分析系列 ]thanos query组件源码简析

Safety training is the greatest benefit for employees! 2022 induction safety training for new employees

open62541直接导入NodeSet文件
随机推荐
自动化测试的生命周期是什么?
es数据导出csv文件
ZYNQ_ IIC read / write m24m01 record board status
Ice, protobuf, thrift -- Notes
HJ delete the character with the least number of occurrences in the string
Dbeaver 22.1.1 release, visual database management platform
阿里云服务器创建快照、回滚磁盘
Install haproxy
A single node obtains the lock lock of the order number
Section Xi. Axi of zynq_ Use of DMA
Investment transaction and settlement of the fund
代码提交规范
kubelet驱逐机制的源码分析
Hack the box:routerspace
kubernetes删除pod的流程的源码简析
R language drawing ggplot2 seasonal graph
HJ字符串排序
Flutter realizes the function of "shake"
协程、asyncio、异步编程
异或的应用。(提取出数字中最右侧的1,面试中经常用的到)