SELECT * FROM INFORMATION_SCHEMA.INNODB_trx;


# 登录
grant all privileges on *.* to 'root'@'localhost' identified by 'root' with grant option;

# 数据库访问权限
GRANT ALL PRIVILEGES ON *.* TO 'admin'@'localhost' WITH GRANT OPTION;

https://blog.csdn.net/weixin_30958737/article/details/113275571

https://blog.csdn.net/m0_52009789/article/details/126161199

https://www.jb51.net/article/255975.htm

https://blog.csdn.net/weixin_39707536/article/details/113206056

mysqld --console --skip-grant-tables --shared-memory


update user set authentication_string='' where user='root'


net stop MySQL80


CREATE USER 'root'@'%' IDENTIFIED BY '123456';

GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' WITH GRANT OPTION;#注意刷新权限表

GRANT ALL PRIVILEGES ON *.* TO 'root'@'localhost' WITH GRANT OPTION;

flush privileges;

INSERT INTO `user`(`host`, `user`) VALUES ('%', 'root');
作者:lzw  创建时间:2022-08-10 18:09
最后编辑:lzw  更新时间:2022-08-31 19:10