更新mysql中授予权限的主机字段

时间:2013-11-07 23:21:42

标签: mysql

我有一个现有的表,我想使用Grant命令

更新权限中的主机部分
mysql> show grants
    -> ;
+------------------------------------------------------------------------------------------------------------+
| Grants for ssc@localhost                                                                                   |
+------------------------------------------------------------------------------------------------------------+
| GRANT USAGE ON *.* TO 'ssc'@'localhost' IDENTIFIED BY PASSWORD '*ABCDEFABCDEF' |
| GRANT ALL PRIVILEGES ON `ssc`.* TO 'ssc'@'localhost' WITH GRANT OPTION                                     |
+------------------------------------------------------------------------------------------------------------+
2 rows in set (0.00 sec)

1 个答案:

答案 0 :(得分:0)

能够从任何地方以ssc方式连接,以创建其他用户并授予他必要的权利

CREATE USER 'ssc'@'%' IDENTIFIED BY '<your password>';
GRANT ALL PRIVILEGES ON `ssc`.* TO 'ssc'@'%' WITH GRANT OPTION;

Adding User Accounts

中详细了解相关内容