运行<代码>专门知识赠款;表示,我作为数据库中所有特权的用户挂牌。
履历:<代码> 错误没有显示我gged的用户名!
就这一指挥而言,我的sql忘记我是谁。 其他选修课以罚款。 谁能解释这一点? 如何确定? 感谢。
Welcome to the MySQL monitor. Commands end with ; or g.
Your MySQL connection id is 2
Server version: 5.5.13-log Source distribution
Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type help; or h for help. Type c to clear the current input statement.
mysql> show grants;
+---------------------------------------------------------------------------------------------------------------------+
| Grants for php@localhost |
+---------------------------------------------------------------------------------------------------------------------+
| GRANT ALL PRIVILEGES ON *.* TO php @ localhost IDENTIFIED BY PASSWORD *8F5FF90079BC601F8EA7C148475658E65A0C029D |
| GRANT ALL PRIVILEGES ON `sunflower_work`.* TO php @ localhost |
| GRANT ALL PRIVILEGES ON `news_demo`.* TO php @ localhost |
| GRANT ALL PRIVILEGES ON `news_base`.* TO php @ localhost |
+---------------------------------------------------------------------------------------------------------------------+
4 rows in set (0.00 sec)
mysql> show table status from sunflower_work;
ERROR 1143 (42000): SELECT command denied to user @ % for column uid in table users
mysql>
根据Tomalak的建议,我删除了用户,并以更充分的特权重新编号,没有密码。 问题依然存在。 我们现在看着这一点:
mysql> show grants;
+--------------------------------------------------+
| Grants for php@localhost |
+--------------------------------------------------+
| GRANT ALL PRIVILEGES ON *.* TO php @ localhost |
+--------------------------------------------------+
1 row in set (0.00 sec)
mysql> show table status;
ERROR 1143 (42000): SELECT command denied to user @ % for column uid in table users
mysql>