用sql语句来创建并赋予mysql用户权限
2005-12-13  作者:阿毛  同分类文章
description:
在PhpMyAdmin的sql里面执行操作给mysql创建新用户,并且赋予相应的权限

创建用户:
grant usage on books.* to sally identified by 'magic123';
创建一个没有任何权限的密码为magic123的用户sally,将usage换成all,就是赋予所有权限

赋予权限:
grant  select,insert,update,delete,index,alter,create,drop on books.* to sally;
上面两句,可以合成:

grant select,insert,update,delete,index,alter,create,drop on books.* to sally identified by 'magic123';

减少权力:

revoke alter,create,drop on books.* from sally;

撤销所有权限:

revoke all on books.* from sally;



相关
用php获取访问者ip地址(在服务器使用缓存的环
统计在线时间
email地址php检测
php你都会了吗?
windows 下安装 php_imagick.dll(Image magick Functions)
让我伤心的flickr api
linux远程管理工具Webmin安装指南
Smarty-2.6.12 FAQ 有感
关于取得上一条记录和下一条记录的问题!
php web打印解决方案