当前位置:网站首页>关于 MySQL 修改密码失败
关于 MySQL 修改密码失败
2022-06-12 00:35:00 【看,未来】
修改语句无效(版本问题)
update mysql.user set authentication_string=password('123456') where user='root'
注意上述语句已经失效了,新版为:
ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY '123456';
其实我就纳闷儿了,我半年前写毕设的时候用的还是上面那条命令的更早的,是 修改user 表的。
三个月前写 docker 部署 MySQL主从的时候用的是上面的命令。
今天上面的命令就不行了,就要用下面的命令了。
改的这么快吗?难道更新一下版本就要改几条命令?
注:我从两年半前第一次学MySQL用的就是 MySQL8,我寻思着都是一个大版本啊搞什么啊?
得出结论:适当的用用旧版本.
边栏推荐
- EFCore中数据表的两种配置方式
- Exploration of qunar risk control safety products
- Chisel environment setup (win10 + vscode)
- MySQL basic tutorial -- MySQL transaction and storage engine
- win10系统pscs6如何卸载
- Gin solves cross domain problems
- Experiment 7 class construction and static member function
- How to package and send compressed files for mobile WPS
- Experiment four categories and objects
- How to achieve fair and equitable data access and service ecology?
猜你喜欢

gin集成图形验证码

Experiment 5 constructor and destructor

LabVIEW Arduino电子称重系统(项目篇—1)

汛期化工和危险品企业如何加强防控重大安全风险

C语言练习:ESP32 BLE低功耗蓝牙服务端数据打包和客户端数据解析

App startup process: from clicking the application icon to the activity startup process

Motianlun domestic database salon | Xu Li: Alibaba cloud's native lindorm TSDB database drives the upgrading of industrial it & ot hyper integrated digital system

What does the Red Cross of win10 folder status indicate

IP编址概述

一、Flutter 入门学习写一简单客户端
随机推荐
Flutter 使用本地图片
wps表格怎么取消智能表格样式
Hertzbeat v1.0 beta. 4 release, easy-to-use and friendly monitoring alarm system
Collation of common array functions
Exploration of qunar risk control safety products
[day 7 of JUC learning] reentrantlock and reentrantreadwritelock
组态王如何利用无线Host-Link通信模块远程采集PLC数据?
Zhangxiaobai takes you to install MySQL 5.7 on Huawei cloud ECS server
Experiment 5 constructor and destructor
点云库pcl从入门到精通学习记录 第八章
ironSource  New functions are released, and developers can adjust advertising strategies in real time in the same session
設計消息隊列存儲消息數據的 MySQL 錶格
Started with trust and loyal to profession | datapipeline received a thank you letter from Shandong city commercial bank Alliance
Argodb 3.2 of star ring technology was officially released to comprehensively upgrade ease of use, performance and security
Optimization method of win7 FPS
Experiment 6 constructor + copy construction
Characteristics of JS logical operators
Pre resolution and scope
At the digital data nextionbi online conference, traditional enterprises showed their in-depth understanding of data analysis
Experiment 7 class construction and static member function