当前位置:网站首页>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 .
边栏推荐
猜你喜欢

NAACL 2022 | 机器翻译SOTA模型的蒸馏

windows平台下的mysql启动等基本操作

Mysql中锁的使用场景是什么

Shenzhen internal promotion | Shenzhen Institute of computing science recruits assistant machine learning Engineer (school recruitment)

在线文本数字识别列表求和工具

Tencent cloud released orbit, an automated delivery and operation and maintenance product, to promote enterprise applications to be fully cloud native

自动收售报机

Redis 原理 - Sorted Set (ZSet)

从Mpx资源构建优化看splitChunks代码分割

mysql查询视图命令是哪个
随机推荐
如何在 PowerPoint 中向幻灯片添加 SmartArt?
自定义HandlerInterceptor拦截器实现用户鉴权
KUKA robot external axis configuration what you must know
Scenario solution for two modules calling each other in go
毕业季 | 华为专家亲授面试秘诀:如何拿到大厂高薪offer?
微信小程序开发储备知识
Tencent cloud released orbit, an automated delivery and operation and maintenance product, to promote enterprise applications to be fully cloud native
SpingMVC请求和响应
mysql支持外键吗
R language uses user-defined functions to write deep learning leaky relu activation functions and visualize leaky relu activation functions
R language uses GLM function to build Poisson logarithm linear regression model, processes three-dimensional contingency table data to build saturation model, uses exp function and coef function to ob
What are the advantages of SaaS services
First batch! Tencent cloud's ability to pass the solution of the government affairs collaboration platform of the China Academy of ICT
mysql数据库扫盲,你真的知道什么是数据库嘛
sequential detector
@Component与@Configuration区别
在线SQL转CSV工具
The R language inputs the distance matrix to the hclust function for hierarchical clustering analysis. The method parameter specifies the distance calculation method between two combined data points,
【R语言数据科学】:文本挖掘(以特朗普推文数据为例)
Freedom自由协议质押挖矿系统开发