如下面所未,我create database test也没有效果show database也没有,很是郁闷。C:\Documents and Settings\Administrator>mysql -u root -p
Enter password: ******
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 53 to server version: 5.0.18-ntType 'help;' or '\h' for help. Type '\c' to clear the buffer.mysql> show database
    ->

解决方案 »

  1.   

    你的命令打错了,应该是show databases
      

  2.   

    C:\Documents and Settings\Administrator>mysql -u root -p
    Enter password: ******
    Welcome to the MySQL monitor.  Commands end with ; or \g.
    Your MySQL connection id is 53 to server version: 5.0.18-ntType 'help;' or '\h' for help. Type '\c' to clear the buffer.mysql> show database
        -> show databases
        -> show databases;
    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 'datab
    ase
    show databases
    show databases' at line 1
    mysql> 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 'datab
    ase' at line 1
    mysql>
    以上是我按你们要求做的,还是没有效果啊
      

  3.   

    重复了...只要打一次show databases;
      

  4.   

    show databases;一句话,不要前面有什么输出,系统会认为你默认你之前的输出也有效,懂吗?多动手多试试
      

  5.   


    谢谢,兄弟。还有我想查询某个数据库下的某一个表怎么办?
    查询的结果会在dos窗口上显示吗?怎么查询啊?谢谢。
      

  6.   

    use 你的数据库;
    show tables; //显示所有表
    desc aa;  //描述aa表结构.
    select * from aa ; //查询aa表中所有数据建议去学学mysql基本语法。。
      

  7.   


    晕死,mysql我也搞一年多了,基本语还不懂吗,只不过一直没有在cmd里使用,你在这发有什么用,在cmd里支持一下,然后把显示的贴上来。
      

  8.   

    你是来搞笑的吧?你搞一年多了不知道cmd 里执行的就是mysql的语句吗?那只是换了个客户端而已....
    真搞
      

  9.   

    提示符含义.
    mysql>准备好接受新命令。
    ->等待多行命令的下一行。
    ";"表示语句结束.
    MySQL手册第三章.
      

  10.   

    phpnewnew 抖了抖身上的灰尘,顿时觉得身形高大起来...
    装个SQlyog吧 在里面执行比用那个CMD 舒服多了...