我有一个现有的表,我想使用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)
答案 0 :(得分:0)
能够从任何地方以ssc
方式连接,以创建其他用户并授予他必要的权利
CREATE USER 'ssc'@'%' IDENTIFIED BY '<your password>';
GRANT ALL PRIVILEGES ON `ssc`.* TO 'ssc'@'%' WITH GRANT OPTION;
中详细了解相关内容