mysql批量刷新用户密码
不知道用户密码,并且不改变用户密码的情况下,批量刷新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 alteruser from mysql.user;
相关推荐
CoderToy 2020-11-16
bianruifeng 2020-11-16
云中舞步 2020-11-12
敏敏张 2020-11-11
暗夜之城 2020-11-11
好记忆也需烂 2020-11-11
Coder技术文摘 2020-09-29
huacuilaifa 2020-10-29
Gexrior 2020-10-22
lpfvip00 2020-10-07
云中舞步 2020-09-11
康慧欣 2020-09-10
emmm00 2020-11-17
王艺强 2020-11-17
ribavnu 2020-11-16
wangshuangbao 2020-11-13
苏康申 2020-11-13
vivenwan 2020-11-13