关于Mysql的有限授权权限

时间:2013-11-13 07:29:02

标签: mysql grant

如何在MySQL(非root用户)中创建特权用户,仅用于创建其他用户?

但是,此用户一次只能授予对一个数据库的访问权限。

是否可以为用户提供有限的GRANT权限?

1 个答案:

答案 0 :(得分:-1)

    yes you can create mysql user and  grant limited permissions using phpmyadmin    
     interface and also by command 
    use following command for creating user and grant permissions



        CREATE USER 'monty'@'localhost' IDENTIFIED BY 'some_pass';

      GRANT SELECT ON database.* TO 'user'@'localhost';

你可以进一步探索

http://dev.mysql.com/doc/refman/5.1/en/adding-users.html http://dev.mysql.com/doc/refman/5.1/en/grant.html