当前位置:网站首页>[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';
边栏推荐
- Structure of golang
- Iterm2设置
- Go language foundation ----- 18 ----- collaboration security, mutex lock, read-write lock, anonymous lock, sync Once
- Redis batch startup and shutdown script
- PAT甲级 1032 Sharing
- Differences between tp3.2 and tp5.0
- 【LeetCode】4. Best Time to Buy and Sell Stock·股票买卖最佳时机
- Introduction of novel RNA based cancer therapies
- Technical dry goods | thinking about the unification of dynamic and static diagrams of AI framework
- PAT甲级 1029 Median
猜你喜欢

PAT甲级 1027 Colors in Mars

Leetcode 213: looting II
![[MySQL 11] how to solve the case sensitive problem of MySQL 8.0.18](/img/9b/db5fe1a37e0de5ba363f9e108310a5.png)
[MySQL 11] how to solve the case sensitive problem of MySQL 8.0.18

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

Go language foundation ----- 04 ----- closure, array slice, map, package

Paper learning -- Study on the similarity of water level time series of Xingzi station in Poyang Lake
![[MySQL 14] use dbeaver tool to remotely backup and restore MySQL database (Linux Environment)](/img/38/3435d353e50b19fe09c8ab9db52204.png)
[MySQL 14] use dbeaver tool to remotely backup and restore MySQL database (Linux Environment)

Technical dry goods | thinking about the unification of dynamic and static diagrams of AI framework

Hnsw introduction and some reference articles in lucene9

【MySQL 12】MySQL 8.0.18 重新初始化
随机推荐
Analysis of the eighth Blue Bridge Cup single chip microcomputer provincial competition
技术干货|昇思MindSpore创新模型EPP-MVSNet-高精高效的三维重建
go语言-循环语句
Huawei s5700 switch initialization and configuration SSH and telnet remote login methods
Go language foundation ----- 09 ----- exception handling (error, panic, recover)
Lucene hnsw merge optimization
The difference between typescript let and VaR
Go language foundation ----- 10 ----- string related operations (operation function, string conversion)
技术干货|昇思MindSpore NLP模型迁移之Bert模型—文本匹配任务(二):训练和评估
【LeetCode】2. Valid Parentheses·有效的括号
PAT甲级 1027 Colors in Mars
Go language foundation ----- 18 ----- collaboration security, mutex lock, read-write lock, anonymous lock, sync Once
技术干货|昇思MindSpore算子并行+异构并行,使能32卡训练2420亿参数模型
Iterm2设置
项目经验分享:实现一个昇思MindSpore 图层 IR 融合优化 pass
【MySQL 13】安装MySQL后第一次修改密码,可以可跳过MySQL密码验证进行登录
Redis批量启停脚本
Technical dry goods Shengsi mindspire dynamic transformer with variable sequence length has been released!
Harmonyos third training notes
Analysis of the ninth Blue Bridge Cup single chip microcomputer provincial competition