当前位置:网站首页>[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';
边栏推荐
- EtherCAT state machine transition (ESM)
- 技术干货|昇思MindSpore NLP模型迁移之Bert模型—文本匹配任务(二):训练和评估
- Go language foundation ----- 16 ----- goroutine, GPM model
- Traversal in Lucene
- Collector in ES (percentile / base)
- 【LeetCode】4. Best time to buy and sell stock
- Screenshot tool snipaste
- 技术干货|昇思MindSpore可变序列长度的动态Transformer已发布!
- 技术干货|昇思MindSpore初级课程上线:从基本概念到实操,1小时上手!
- experiment.........
猜你喜欢
Inverted chain disk storage in Lucene (pfordelta)
【MySQL 11】怎么解决MySQL 8.0.18 大小写敏感问题
技术干货|昇思MindSpore算子并行+异构并行,使能32卡训练2420亿参数模型
An article for you to understand - Manchester code
技术干货|百行代码写BERT,昇思MindSpore能力大赏
Pat grade a 1027 colors in Mars
Go language foundation ------ 14 ------ gotest
OSPF experiment
Paper learning -- Study on the similarity of water level time series of Xingzi station in Poyang Lake
Project experience sharing: realize an IR Fusion optimization pass of Shengsi mindspire layer
随机推荐
Go language foundation ----- 11 ----- regular expression
[coppeliasim4.3] C calls UR5 in the remoteapi control scenario
Go language foundation ------ 14 ------ gotest
研究显示乳腺癌细胞更容易在患者睡觉时进入血液
Technology dry goods | Roberta of the migration of mindspore NLP model - emotion analysis task
Segment read
[MySQL 14] use dbeaver tool to remotely backup and restore MySQL database (Linux Environment)
华为S5700交换机初始化和配置SSH和TELNET远程登录方法
Structure of golang
【MySQL 12】MySQL 8.0.18 重新初始化
Go language - loop statement
【MySQL 14】使用DBeaver工具远程备份及恢复MySQL数据库(Linux 环境)
Go language foundation ----- 08 ----- interface
Huawei switch basic configuration (telnet/ssh login)
技术干货|AI框架动静态图统一的思考
Analysis of the problems of the 12th Blue Bridge Cup single chip microcomputer provincial competition
opensips与对方tls sip trunk对接注意事项
Leetcode 198: house raiding
技术干货|利用昇思MindSpore复现ICCV2021 Best Paper Swin Transformer
lucene scorer