Permissions granted to other users of the mysql database

Scene: different developers have different permissions to the database; also be applied to different development outsourcing company permission.
root user login database, execute the following command-line statement can be.

. Grant select, delete, update, create, drop on the database name * to 'username' @ '%';

Or: grant all on database name * to 'username' @ '%';.

E.g:

grant select,delete,update,insert,create,drop on test.* to 'kfuser'@'%';
grant all on test.* to 'kfuser'@'%';

Guess you like

Origin www.cnblogs.com/zhangww/p/11822954.html