orcl-2018

不知道用户密码,并且不改变用户密码的情况下,批量刷新MySQL数据库用户的密码

select concat(\'alter user \\'\',user,\'\\'@\\'\',host,\'\\' identified by \\'\',authentication_string,\'\\';\') as change_password from mysql.user;

 

扩展:

在其他MySQL实例创建与本实例密码相同的用户

select concat(\'create user \\'\',user,\'\\'@\\'\',host,\'\\' identified by password \\'\',authentication_string,\'\\';\') as create_user from mysql.user;

 

分类:

技术点:

相关文章:

  • 2021-09-01
  • 2022-01-02
  • 2021-10-24
  • 2022-12-23
  • 2021-10-27
  • 2022-02-12
猜你喜欢
  • 2022-12-23
  • 2021-10-16
  • 2022-12-23
  • 2021-07-18
  • 2021-05-27
  • 2021-10-25
相关资源
相似解决方案