当前位置:网站首页>How to solve the 2003 error of MySQL in Linux
How to solve the 2003 error of MySQL in Linux
2022-06-29 17:23:00 【Yisu cloud】
mysql stay linux in 2003 How to solve the mistake
Today I'd like to share with you mysql stay linux in 2003 Relevant knowledge points on how to solve the error , Detailed content , Clear logic , I believe most people still know too much about this knowledge , So share this article for your reference , I hope you will gain something after reading this article , Now let's take a look .
resolvent :1、 modify “my.cnf” file , stay “bind-address = 127.0.0.1” Add before “#” Comment it out ;2、 Add... To the file “skip-external-lockingskip-name-resolve”;3、 utilize “service mysql restart” Restart mysql The service can be .
The operating environment of this tutorial :linux7.3 System 、mysql8.0.22 edition 、Dell G3 The computer .
mysql stay linux Medium 2003 Error resolution
resolvent :
1、 modify mysql file
Input at the console , Get into mysql Under the table of contents ,
sudo su // Get into root jurisdiction cd /etc/mysql
open my.cnf file , find bind-address = 127.0.0.1 Add in front # Comment out , as follows :
#bind-address = 127.0.0.1
2、 Then add the following code
skip-external-lockingskip-name-resolve
If in my.cnf Can't find... In the file #bind-address = 127.0.0.1 As shown in the figure :

So enter The second path /etc/mysql/mysql.conf.d/ Open in folder mysqld.cnf Just modify the file .
3、 Restart mysql service
service mysql restart
Expanding knowledge :
By the way, when I was talking about the connection, I encountered is not allowed to connect to this MySQL server The wrong solution ;
1. Input at the console mysql -uroot -p password Get into mysql
(2. Input use mysql; Get into mysql database
3. Input update user set host=’%’ where user=’root’ ; To allow ip visit .) Be careful : The method in parentheses is to allow everyone to connect , Easy to be hacked by others , So you need to set the specified IP visit . The specific method is as follows :
Direct input :
GRANT ALL PRIVILEGES ON *.* TO 'root'@' To specify IP Address ' IDENTIFIED BY ' Set password for ' WITH GRANT OPTION;
You can also update the host Updated to % , Then through the graphical interface (SqlYog, workbench etc. ) To update host For their own ip.
4. Continue to input flush privileges; remember , No matter which method you choose above , This step should be performed to update the database user permissions . It's very important !!!
5. Then reconnect , So the problem is solved .
That's all “mysql stay linux in 2003 How to solve the mistake ” All the content of this article , Thank you for reading ! I believe you will gain a lot after reading this article , Xiaobian will update different knowledge for you every day , If you want to learn more , Please pay attention to the Yisu cloud industry information channel .
边栏推荐
- R语言dplyr包filter函数通过组合逻辑(与逻辑)过滤dataframe数据中的数据、其中一个字段的内容等于指定向量中的其中一个,并且另外一个字段值大于某一阈值
- 如何在 PowerPoint 中向幻灯片添加 SmartArt?
- windows平台下的mysql启动等基本操作
- R language uses GLM of mass package The Nb function establishes the negative binomial generalized linear model, and the summary function obtains the summary statistical information of the negative bin
- PCB板框的绘制——AD19
- XAMPP Apache安装时问题总结
- SLAM中的子图
- 为什么信息化 ≠ 数字化?终于有人讲明白了
- 关于harbor私有仓库忘记登录密码
- mysql数据库扫盲,你真的知道什么是数据库嘛
猜你喜欢

0基础自学STM32(野火)——使用寄存器点亮LED——GPIO功能框图讲解

PCB板框的绘制——AD19

High landing pressure of "authorization and consent"? Privacy computing provides a possible compliance "technical solution"

基于汇编实现的流载体的LSB隐藏项目

mysql如何查询表的字符集编码

疫情居家外包项目之协作开发| 社区征文

Redis principle - sorted set (Zset)

Word2vec vector model of Wiki Chinese corpus based on deep learning

序列检测器

What are the project management systems suitable for small and medium-sized enterprises?
随机推荐
mysql在linux中2003错误如何解决
Kubernetes deployment dashboard (Web UI management interface)
In depth analysis of Monai (I) data and transforms
适合中小企业的项目管理系统有哪些?
力扣今日题-535. TinyURL 的加密与解密
How to use interrupt
KUKA robot external axis configuration what you must know
What are the advantages of SaaS services
毕业季 | 华为专家亲授面试秘诀:如何拿到大厂高薪offer?
微信小程序开发储备知识
Understanding adapter mode from home office | community essay solicitation
mysql如何查询表的字符集编码
Inheritablethreadlocal resolves message loss during message transmission between parent and child threads in the thread pool
深圳内推 | 深圳计算科学研究院招聘机器学习助理工程师(校招)
mysql查询视图命令是哪个
Summary of problems during xampp Apache installation
R语言ggplot2可视化:使用patchwork包(直接使用加号+)将两个ggplot2可视化结果横向组合、接着再和第三个图像横向组合起来(三幅图各占比例为50%、25%、25%)
R语言使用自定义函数编写深度学习线性激活函数、并可视化线性激活函数
关于harbor私有仓库忘记登录密码
Help MySQL data analysis with databend