mysql创建修改删除用户_MySQL
程序员文章站
2022-04-26 14:02:31
...
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
上一篇: Oracle RAC 环境下修改主机名
下一篇: PHP获取主机名、域名函数