当前位置:网站首页>[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';
边栏推荐
- 密西根大学张阳教授受聘中国上海交通大学客座教授(图)
- Technical dry goods | alphafold/ rosettafold open source reproduction (2) - alphafold process analysis and training Construction
- Leetcode 198: house raiding
- The concept of C language pointer
- [MySQL 14] use dbeaver tool to remotely backup and restore MySQL database (Linux Environment)
- Technical dry goods Shengsi mindspire elementary course online: from basic concepts to practical operation, 1 hour to start!
- Pat grade a 1029 median
- [at] ABC 258g - triple Reach - violence
- 研究显示乳腺癌细胞更容易在患者睡觉时进入血液
- PAT甲级 1029 Median
猜你喜欢

Go language foundation ----- 10 ----- string related operations (operation function, string conversion)

【LeetCode】3. Merge two sorted lists · merge two ordered linked lists

Technology dry goods | Roberta of the migration of mindspore NLP model - emotion analysis task

Es writing fragment process

【LeetCode】4. Best Time to Buy and Sell Stock·股票买卖最佳时机

技术干货|昇思MindSpore创新模型EPP-MVSNet-高精高效的三维重建

研究显示乳腺癌细胞更容易在患者睡觉时进入血液

Pat grade a 1027 colors in Mars

Application of pigeon nest principle in Lucene minshouldmatchsumscorer

技术干货|昇思MindSpore初级课程上线:从基本概念到实操,1小时上手!
随机推荐
Harmonyos third training notes
Technical dry goods Shengsi mindspire operator parallel + heterogeneous parallel, enabling 32 card training 242 billion parameter model
Epoll related references
密西根大学张阳教授受聘中国上海交通大学客座教授(图)
Go language foundation ----- 11 ----- regular expression
The babbage industrial policy forum
Paper learning -- Study on the similarity of water level time series of Xingzi station in Poyang Lake
输入三次猜一个数字
技术干货|昇思MindSpore NLP模型迁移之LUKE模型——阅读理解任务
PAT甲级 1030 Travel Plan
Redis batch startup and shutdown script
Go language - loop statement
Research shows that breast cancer cells are more likely to enter the blood when patients sleep
experiment.........
技术干货|关于AI Architecture未来的一些思考
OSPF experiment
PHP wechat red packet grabbing algorithm
【MySQL 12】MySQL 8.0.18 重新初始化
[MySQL 11] how to solve the case sensitive problem of MySQL 8.0.18
Go language foundation ----- 02 ----- basic data types and operators