mysql8新建用户及授权 发表于 2023-01-01 | 更新于: 2024-03-10 | 分类于 数据库 , Mysql | 阅读次数: | 浏览量 记录一下。1234567891011# 新建用户create user snipe_user;# 重置密码alter user 'snipe_user'@'%' IDENTIFIED WITH mysql_native_password BY '123456';# 授权grant all privileges on snipeit.* to 'snipe_user'@'%' with grant option;# 记得flushflush privileges;We smile, we angry, we disappoint, we excited, we love, we hate, that’s our life.书山有路勤为径,学海无涯苦作舟。欢迎关注微信公众号:【程序员写书】喜欢宠物的朋友可以关注:【电巴克宠物Pets】一起学习,一起进步。-------------本文结束感谢您的阅读-------------