mysql創建修改刪除用戶
創建 create user 'test1'@'localhost/127.0.0.1' identified by '123' 本機權限 create user 'test1'@'%' identified by '123' 所有權限 刪除 drop user 'user'@'host' 撤銷用戶權限 revoke all on *.* from 'test'@'localhost';
更改用戶名 rename user 'test'@'localhost' to 'test1'@'%'; 增加權限 GRANT ALL PRIVILEGES ON app.* TO webuser@"%"; grant select,update(field1,field2) on dbname.tablename to 'test1'@'%' grantselecton testdb.*to common_user@'%'