当前位置:网站首页>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的学生数量已涨200%,老师都不够用了
- API调用,API传参,面向对接开发,你真的会写接口文档吗?
- 保存Simulink仿真模型为图片或者PDF的方法
- FFmpeg在win10上编译安装(配置libx264)
- 内网穿透工具ngrok使用教程
- 软件测试——金融测试类面试题,看完直接去面试了
- 用皮肤“听”音乐,网友戴上这款装备听音乐会:仿佛住在钢琴里
- 我们真的需要DApp吗?App真的不能满足我们的幻想吗?
- Adalvo acquires its first branded product, Onsolis
- The FFmpeg library is configured and used on win10 (libx264 is not configured)
猜你喜欢
一甲子,正青春,CCF创建六十周年庆典在苏州举行
Nature:猪死亡1小时后,器官再次运转
专业人士使用的 11 种渗透测试工具
How to upload local file trial version in binary mode in ABAP report
"Digital Economy Panorama White Paper" Special Analysis of Banking Industry Intelligent Marketing Application Released
Manchester city launch emotional intelligence scarf can be detected, give the fans
ABAP 面试题:如何使用 ABAP 编程语言的 System CALL 接口,直接执行 ABAP 服务器所在操作系统的 shell 命令?
曼城推出可检测情绪的智能围巾,把球迷给整迷惑了
GRPC整体学习
Resolved IndentationError: unindent does not match any oute r indentation Level
随机推荐
基于CAP组件实现补偿事务与幂等性保障
AQS Synchronization Component - FutureTask Analysis and Use Cases
8、IDEA提交代码出现: Fetch failed fatal: Could not read from remote repository
Simple understanding of ThreadLocal
智驾科技完成C1轮融资,此前2轮已融4.5亿元
MySQL principle and optimization of Group By optimization techniques
Gumbel_Softmax 概要
WeChat payment development process
Scala Advanced (7): Collection Content Summary (Part 1)
你没见过的《老友记》镜头,AI给补出来了|ECCV 2022
【无标题】
内网穿透工具ngrok使用教程
Glory to the Blue Yonder, speeds up the strategic growth
基于STM32+铂电阻设计的测温仪
水能自发变成“消毒水”,83岁斯坦福教授:揭示冬天容易得流感的部分原因...
链表噩梦之一?5000多字带你弄清它的来龙去脉
Two minutes recording can pass by second language!The volcano how to practice and become voice tone reproduction technology?
张朝阳对话俞敏洪:一边是手推物理公式,一边是古诗信手拈来
FFmpeg库在win10上配置使用(不配置libx264)
ABAP 面试题:如何使用 ABAP 编程语言的 System CALL 接口,直接执行 ABAP 服务器所在操作系统的 shell 命令?