当前位置:网站首页>[step on the pit series] MySQL failed to modify the root password
[step on the pit series] MySQL failed to modify the root password
2022-07-03 07:47:00 【The sea of waves】
【 Step on the pit series 】 mysql modify root Password failed
Question why
mysql modify root Password failed , Mainly because root Of host No localhost, yes % The problem of .
To change a password

-- Switch to mysql bin route
-- Log on first mysql
mysql -u root -p
-- Input password
-- Switch to mysql data
use mysql;
-- Query user information
select user,host from user;
+------------------+-----------+
| user | host |
+------------------+-----------+
| root | % |
| admin | localhost |
| mysql.infoschema | localhost |
| mysql.session | localhost |
| mysql.sys | localhost |
| zhangj | localhost |
+------------------+-----------+
Pay attention to my root,host yes ’%’
ALTER USER 'root'@'%' IDENTIFIED WITH mysql_native_password BY '123';
边栏推荐
- What did the DFS phase do
- Analysis of the problems of the 7th Blue Bridge Cup single chip microcomputer provincial competition
- PAT甲级 1029 Median
- lucene scorer
- Pat class a 1031 Hello world for u
- 【LeetCode】2. Valid parentheses · valid parentheses
- 技术干货|昇思MindSpore NLP模型迁移之Bert模型—文本匹配任务(二):训练和评估
- Go language foundation ----- 18 ----- collaboration security, mutex lock, read-write lock, anonymous lock, sync Once
- Project experience sharing: realize an IR Fusion optimization pass of Shengsi mindspire layer
- Go language foundation ----- 19 ----- context usage principle, interface, derived context (the multiplexing of select can be better understood here)
猜你喜欢

Go language foundation ----- 06 ----- anonymous fields, fields with the same name

Application of pigeon nest principle in Lucene minshouldmatchsumscorer

Pat class a 1028 list sorting

Pat class a 1032 sharing

Go language foundation ----- 16 ----- goroutine, GPM model

Go language foundation ----- 07 ----- method

项目经验分享:基于昇思MindSpore,使用DFCNN和CTC损失函数的声学模型实现

Professor Zhang Yang of the University of Michigan is employed as a visiting professor of Shanghai Jiaotong University, China (picture)

Analysis of the eighth Blue Bridge Cup single chip microcomputer provincial competition

技术干货|昇思MindSpore Lite1.5 特性发布,带来全新端侧AI体验
随机推荐
Application of pigeon nest principle in Lucene minshouldmatchsumscorer
LwIP learning socket (API)
What is definition? What is a statement? What is the difference between them?
【MySQL 11】怎么解决MySQL 8.0.18 大小写敏感问题
Go language foundation ----- 19 ----- context usage principle, interface, derived context (the multiplexing of select can be better understood here)
Technical dry goods Shengsi mindspire dynamic transformer with variable sequence length has been released!
Technical dry goods | hundred lines of code to write Bert, Shengsi mindspire ability reward
EtherCAT state machine transition (ESM)
项目经验分享:实现一个昇思MindSpore 图层 IR 融合优化 pass
Technical dry goods | Bert model for the migration of mindspore NLP model - text matching task (2): training and evaluation
Project experience sharing: handwritten Chinese character recognition based on Shengsi mindspire
什么是定义?什么是声明?它们有何区别?
static关键字
GoLang之结构体
[MySQL 11] how to solve the case sensitive problem of MySQL 8.0.18
Iterm2设置
Pgadmin 4 v6.11 release, PostgreSQL open source graphical management tool
s7700设备如何清除console密码
PHP wechat red packet grabbing algorithm
Segment read