为什么mysql说我的SQL语法有错误,当我使用命令帮助和状态时?

时间:2014-05-01 11:01:29

标签: mysql

mysql> help;

1064 - You have an error in your SQL syntax; check the manual that corresponds to 
your MySQL server version for the right syntax to use near '' at line 1

mysql> show databases;

+--------------------+
| Database           |
+--------------------+
| information_schema |
| cppp               |
| db_byb_develop     |
| mysql              |
| test               |
| train              |
+--------------------+

6 rows in set

mysql> status

-> ;

1064 - You have an error in your SQL syntax; check the manual that corresponds to 
your MySQL server version for the right syntax to use near 'status' at line 1

1 个答案:

答案 0 :(得分:0)

它的

SHOW STATUS;

不仅仅是

status ;

https://dev.mysql.com/doc/refman/5.0/en/show-status.html