当前位置:网站首页>[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';
边栏推荐
- Pat grade a 1027 colors in Mars
- OSPF experiment
- Structure of golang
- Go language foundation ----- 03 ----- process control, function, value transfer, reference transfer, defer function
- 项目经验分享:基于昇思MindSpore实现手写汉字识别
- Leetcode 198: house raiding
- 截图工具Snipaste
- Technical dry goods | hundred lines of code to write Bert, Shengsi mindspire ability reward
- 华为S5700交换机初始化和配置telnet,ssh用户方法
- 技术干货|昇思MindSpore NLP模型迁移之LUKE模型——阅读理解任务
猜你喜欢
Technical dry goods | alphafold/ rosettafold open source reproduction (2) - alphafold process analysis and training Construction
Analysis of the problems of the 10th Blue Bridge Cup single chip microcomputer provincial competition
[MySQL 11] how to solve the case sensitive problem of MySQL 8.0.18
Analysis of the problems of the 7th Blue Bridge Cup single chip microcomputer provincial competition
Pat class a 1031 Hello world for u
Analysis of the problems of the 11th Blue Bridge Cup single chip microcomputer provincial competition
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
HarmonyOS第三次培训笔记
Es writing fragment process
随机推荐
Technical dry goods | hundred lines of code to write Bert, Shengsi mindspire ability reward
Technical dry goods Shengsi mindspire innovation model EPP mvsnet high-precision and efficient 3D reconstruction
Go language foundation ----- 13 ----- file
Analysis of the problems of the 10th Blue Bridge Cup single chip microcomputer provincial competition
Redis批量启停脚本
Structure of golang
技术干货|昇思MindSpore NLP模型迁移之LUKE模型——阅读理解任务
Analysis of the problems of the 11th Blue Bridge Cup single chip microcomputer provincial competition
Go language foundation ----- 07 ----- method
Go language foundation ----- 10 ----- string related operations (operation function, string conversion)
华为S5700交换机初始化和配置telnet,ssh用户方法
Redis profile
Go language foundation ----- 05 ----- structure
Enter three times and guess a number
Collector in ES (percentile / base)
UA camouflage, get and post in requests carry parameters to obtain JSON format content
Huawei switch console password reset, device initialization, default password
Epoll related references
PAT甲级 1028 List Sorting
Go language - loop statement