当前位置:Gxlcms > mysql > mysql创建修改删除用户_MySQL

mysql创建修改删除用户_MySQL

时间:2021-07-01 10:21:17 帮助过:26人阅读

bitsCN.com

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@'%'

bitsCN.com

人气教程排行