当前位置:网站首页>Mysql8.0 method and steps for enabling remote connection permission
Mysql8.0 method and steps for enabling remote connection permission
2022-06-30 16:14:00 【1024 Q】
Problem description :
Error reason :
resolvent :
summary
Problem description :development environment :MySQL8+Centos8;
perform MySQL sentence :mysql -h 180.76.XXX.XX -u root -pPassword;
ERROR 1130 (HY000): Host ‘180.76.XXX.XX’ is not allowed to connect to this MySQL server
resolvent :First , Check whether the firewall of the server to connect to the database is closed , Check whether the connection with the server is smooth ( Method : stay cmd Console Input ping ip Address )
Next , Get to the point :
The specific operation steps are as follows :
Log in locally MySQL library , Switch to database= “mysql” Next , change “mysql” In the database “user” Exterior and interior “host” term , from "localhost" rename "%" :
Executive mysql The order is as follows :
【1】mysql Command to connect to the local server for which you want to open remote connection permission mysql library >mysql -u root -pPassWord # ”root“ For login account ,”Password“ Is the login password , Modify according to your own settings >use mysql; # The use of database The name is ”mysql“>update user set host = '%' where user = 'root'; # modify ”root“ Account configuration information # update user set host='%' where user='test'; ## If the account number is “test”, Use this command >select host, user from user; # Verification and modification succeeded ;stay mysql The specific execution result of the command line is shown in the figure below :

2. here “ If you connect to a remote MySQL, Still not connected ” when , Then continue the operation GRANT ALL PRIVILEGES ON *.* TO 'root'@'%'WITH GRANT OPTION; Account authorization , After performing FLUSH PRIVILEGES; refresh , that will do ." :
>mysql -u root -pPassWord # ”root“ For login account ,”Password“ Is the login password , Modify according to your own settings # Connect MySQL database >GRANT ALL PRIVILEGES ON *.* TO 'root'@'%'WITH GRANT OPTION; # to grant authorization # Grant all privileges on test.* to 'test'@'%'; # If the account number is “test” when , Use this command >FLUSH PRIVILEGES; # Refresh >EXIT; # sign out MySQLstay mysql The specific execution result of the command line is shown in the figure below :

remarks : Be sure to end here with a semicolon !!!
At this time, there is no above ERROR 1133 Wrong. , After testing , You can already connect to the remote server .
The general implementation steps are as follows :

reference :
Yes MySQL Methods of opening remote connection permissions
solve mysql8 Report errors :ERROR 1410 (42000): You are not allowed to create a user with GRANT
summaryThis is about MySQL8.0 This is the end of the article on enabling remote connection permissions , More about MySQL8.0 To open the remote connection permission content, please search the previous articles of the software development network or continue to browse the following related articles. I hope you can support the software development network in the future !
边栏推荐
- 【时序数据库InfluxDB】Windows环境下配置InfluxDB+数据可视化,以及使用 C#进行简单操作的代码实例
- MySQL proxy middleware atlas installation and configuration
- KDD 2022 | how far are we from the general pre training recommendation model? Universal sequence representation learning model unisrec for recommender system
- Implementation of Devops in the core field of qunar, the Internet R & D Efficiency
- topic: Privacy, Deception and Device Abuse
- KDD 2022 | 我们离通用预训练推荐模型还有多远?推荐系统的通用序列表示学习模型 UniSRec
- Reptile (1) - Introduction to basic reptile theory
- Types of waveguides
- 什么是XR扩展现实,XR云串流平台有哪些
- '<', Hexadecimal value 0x3c, is an invalid problem solving
猜你喜欢

Parameter optimization - bias and variance

开源 STM32 USB-CAN项目

婴儿认知学习所带来的启发,也许是下一代无监督机器学习的关键

KDD 2022 | how far are we from the general pre training recommendation model? Universal sequence representation learning model unisrec for recommender system

iMeta | 叶茂/时玉等综述环境微生物组中胞内与胞外基因的动态穿梭与生态功能...

云化XR,如何助力产业升级

技不压身,快速入门ETH智能合约开发,带你进入ETH世界

linux下修改mysql密码: ERROR 1396 (HY000): Operation ALTER USER failed for ‘root‘@‘localhost‘

BYD is more and more like Huawei?
![Warning: [antd: Menu] `children` will be removed in next major version. Please use `items` instead.](/img/c1/99ad29789a669c4498fb93ce1fb009.png)
Warning: [antd: Menu] `children` will be removed in next major version. Please use `items` instead.
随机推荐
Lecun points out the direction of next generation AI: autonomous machine intelligence
Smart wind power: operation and maintenance of digital twin 3D wind turbine intelligent equipment
What is XR extended reality and what are the XR cloud streaming platforms
Summary of gradient descent optimizer (rmsprop, momentum, Adam)
ASP. Net core signalr tutorial
互联网研发效能之去哪儿网(Qunar)核心领域DevOps落地实践
MySQL proxy middleware atlas installation and configuration
Finally understand science! 200 pictures to appreciate the peak of human wisdom
CVPR 2022丨特斯联AI提出:基于图采样深度度量学习的可泛化行人重识别
[CVE-2019-0193] - Apache Solr DataImport 远程命令执行分析
Under the pressure of technology, you can quickly get started with eth smart contract development, which will take you into the ETH world
[time series database incluxdb] code example for configuring incluxdb+ data visualization and simple operation with C under Windows Environment
渲染引擎的资源加载优化
Oracle 导出视图的创建语句
Flask-SQLAlchemy----sqlalchemy. exc.InvalidRequestError: SQL expression, column, or mapped e---ORM(9)
map reduce案例超详细讲解
Asp.NetCore利用缓存使用AOP方式防止重复提交
从第三次技术革命看企业应用三大开发趋势
Policy Center > Google Play‘s Target API Level Policy
ADB devices cannot detect the problem of Xiaomi note 3