0

我有一个现有的表,我想使用 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)
4

1 回答 1

0

为了能够ssc从任何地方连接,您必须创建一个额外的用户并授予他必要的权限

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

在添加用户帐户中了解更多信息

于 2013-11-08T00:32:12.303 回答