mysql 创建用户-并且授权只读
作者:互联网
select host,user,authentication_string from mysql.user; -- 查询用户
-- drop user 'topingr_reader'@'%'; -- 删除用户
grant all privileges on test_database.* to 'topingr_reader'@'%' identified by 'tpreader@123' with grant option; -- 创建用户
GRANT SELECT ON topingr.* TO 'topingr_reader'@'%' IDENTIFIED BY "tpreader@123"; -- 授权
标签:只读,--,mysql,用户,user,reader,topingr,授权 来源: https://www.cnblogs.com/linma/p/15949193.html