当前位置:网站首页>MySQL5.6到8.0的账号迁移
MySQL5.6到8.0的账号迁移
2022-08-09 12:05:00 【51CTO】
最近有套测试数据库需要从5.6迁移到8.x,用的是逻辑备份迁移方式。
试了下pt-show-grants,发现它导出的账号授权语句在8.x里面不再那么好用了。因为8.x下用户和授权被拆分成了create user和grant 这2个步骤。
工具不好直接搞,我们还可以用sql拼接下。
1 获取待迁移的账号列表
2 获取到授权语句
3 获取批量刷新权限的sql
4 在MySQL8.x执行
边栏推荐
- 西湖大学教授怎么看AI制药革命?|量子位智库圆桌实录
- K个结点的组内逆序调整
- [Microservice ~ Remote Call] Integrate RestTemplate, WebClient, Feign
- h264协议
- Intranet penetration tool ngrok usage tutorial
- 2022 Niu Ke Duo School (6) M. Z-Game on grid
- [Interview high-frequency questions] Linked list high-frequency questions that can be gradually optimized
- 在北极都可以穿短袖了,温度飙升至32.5℃
- 手写大根堆
- 荣耀携手Blue Yonder,加快企业战略增长
猜你喜欢

LeetCode #101. Symmetric Binary Tree

阿里高工带来的20022最新面试总结太香了

用皮肤“听”音乐,网友戴上这款装备听音乐会:仿佛住在钢琴里

你没见过的《老友记》镜头,AI给补出来了|ECCV 2022

LeetCode热题(11.合并两个有序链表)

微信一面:一致性哈希是什么,使用场景,解决了什么问题?

问题来了:4GB物理内存的机器上申请8G内存能成功吗?

Information system project managers must memorize the core test sites (63) The main process of project portfolio management & DIPP analysis

内网穿透工具ngrok使用教程

WeChat side: what is consistent hashing, usage scenarios, and what problems does it solve?
随机推荐
Resolved IndentationError: unindent does not match any oute r indentation Level
Adalvo收购其首个品牌产品Onsolis
HAproxy: load balancing
C# Get system installed .NET version
鹅厂机器狗花式穿越10m梅花桩:前空翻、单桩跳、起身作揖...全程不打一个趔趄...
JD.com architects tidy up: what are the core technical knowledge points of jvm and performance tuning
数据挖掘-05
【Untitled】
阿里高工带来的20022最新面试总结太香了
合并两个有序列表
链表噩梦之一?5000多字带你弄清它的来龙去脉
非科班AI小哥火了:他没有ML学位,却拿到DeepMind的offer
Django cannot link mysql database
MongoDB-查询中$all的用法介绍
Glory to the Blue Yonder, speeds up the strategic growth
水能自发变成“消毒水”,83岁斯坦福教授:揭示冬天容易得流感的部分原因...
京东架构师呕心整理:jvm与性能调优有哪些核心技术知识点
The redis library cannot be imported
专业人士使用的 11 种渗透测试工具
数字化转型之支撑保障单元