系统是CENTOS5,所有该装的包都装了,然后也能正常进入mysql环境,出现"mysql>"的提示,问题是那些最基本的命令如show,create database等等都不能用,我用help查看发现根本就没有这些命令,这是怎么回事啊?

解决方案 »

  1.   

    正常进入mysql环境 ?
    能贴一下错误提示信息吗?
      

  2.   

    比如我输入show database;
    结果就是:ERROR 1064 (42000): 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 'database' at line 1
      

  3.   

    1. 是databases 不是database
    2. 是;不是;mysql> show databases;
    +--------------------+
    | Database           |
    +--------------------+
    | information_schema |
    | mysql              |
    | test               |
    +--------------------+
    3 rows in set (0.00 sec)