当前位置:网站首页>MySQL修改密码不成功(无效)的解决办法
MySQL修改密码不成功(无效)的解决办法
2022-07-22 08:53:00 【scluis】
试过的没成功的方法如下:
1.set password
mysql -u root -p
输入原来密码登陆
set password for ‘root’@‘localhost’ = password(‘123’);
执行完成后密码并没有更新
2.编辑user表
mysql -u root -p
use mysql;
UPDATE user SET Password = PASSWORD(‘123’) WHERE user = ‘root’;
3.在NavicatCat中更改
成功方法:
mysqladmin -u root -p password 123456
输入原来密码
或者
mysql -u root -p
SET PASSWORD=PASSWORD(‘123456’);
边栏推荐
猜你喜欢
Thread learning notes
C语言中continue的理解(fishing_1)
QT筆記—— QTableWidget 之 拖拽行數 和 移動
如何破解IT中年危机下的惨淡人生
VCs and Verdi learning records
互斥锁和信号量
What level do programmers need to reach to get 20K monthly salary without pressure?
A trick to teach you how to visualize recruitment data ~ is there anyone who can't analyze these data cases?
逆袭黑马:数据库全栈工程师(DevDBOps)培训,把最好的课程送给您!
"Review of software engineering in Wuhan University of technology" Chapter 6 | coding specification
随机推荐
化繁为简,聊一聊复制状态机系统架构抽象
SQL多条件查询无法实现
Fcntl function
Internet Download Manager2022智能win最新版下载器
济南 章丘 科目三 资料 收集
Gbase8s database specifies the comparison order with set collation
「武汉理工大学 软件工程复习」第三章 | 软件需求
Multi type low rate DDoS attack detection method based on hybrid deep learning
A trick to teach you how to visualize recruitment data ~ is there anyone who can't analyze these data cases?
[exception] generate guid and datetime, import test data to the database
[bug] datetime format failed
Fabric.js 居中元素
vmware虚拟机和vsphere相互迁移
How to solve the gloomy life under the middle-aged crisis of it
Learn TB writing method with SPI simulation file
Dokcer running Nacos container automatic exit problem
QT notes - qjason
飞机大战中对象池模式子弹使用
数据湖(十八):Flink与Iceberg整合SQL API操作
Gbase8s database set database object mode statement