标签:mysq flush stat bsp 创建用户 drop 持续更新 style 增删改查
systemctl status mysqld.service
systemctl start mysqld.service
systemctl stop mysqld.service
create user ‘sgf‘@‘%‘ identified by ‘SGF_lll315‘;
select user,host from mysql.user;
drop user sgf@‘%‘;
grant create,alter,drop,select,insert,update,delete on testdb.* to sgf@‘%‘;
这里授权只是给sgf这个用户只授予数据库“testdb”中表的创建,修改,删除权限,以及表数据的增删改查权限,可改成所有数据库 *.* 。
flush privileges;
show grants for sgf;
标签:mysq flush stat bsp 创建用户 drop 持续更新 style 增删改查
原文地址:https://www.cnblogs.com/liu-sheng/p/10604904.html