新建用戶和權限操作
連接數據庫,新建用戶
set global validate_password_policy=0;
set global validate_password_length=1;
create user 'louis'@'%' identified by '111';
賦予所有權限
grant all privileges on *.* to 'louis'@'%' identified by '111' with grant option;
flush privileges;
賦予指定權限
grant select,insert, update privileges on *.* to 'louis'@'%' identified by '111' with grant option;
flush privileges;
收回所有權限
revoke all privileges on *.* FROM louis;
flush privileges;