请问我用mysql -uroot -p 输入密码后提示mysql>  但是创建数据库时出现 -> 
;在mysql>提示符下输入help,没有常用的命令,是怎么回事/
,

解决方案 »

  1.   

    显示mysql> 这个,说明你已经登陆进去了。
    你创建数据库的sql后面加;了?
      

  2.   

    mysql>
    提示符下,你可以直接运行命令了。你可以到操作系统命令下 [root@myhost ~]# mysql --help
    得到相应的帮助。
    mysql提示符下用?号得到相应的帮助如下
    mysql> ?For information about MySQL products and services, visit:
       http://www.mysql.com/
    For developer information, including the MySQL Reference Manual, visit:
       http://dev.mysql.com/
    To buy MySQL Network Support, training, or other products, visit:
       https://shop.mysql.com/List of all MySQL commands:
    Note that all text commands must be first on line and end with ';'
    ?         (\?) Synonym for `help'.
    clear     (\c) Clear command.
    connect   (\r) Reconnect to the server. Optional arguments are db and host.
    delimiter (\d) Set query delimiter.
    edit      (\e) Edit command with $EDITOR.
    ego       (\G) Send command to mysql server, display result vertically.
    exit      (\q) Exit mysql. Same as quit.
    go        (\g) Send command to mysql server.
    help      (\h) Display this help.
    nopager   (\n) Disable pager, print to stdout.
      

  3.   


    你说的常用命令是mysql系统的常用命令还是SQL的常用命令?
    mysql系统的常用命令输入help ? 等是可以获取到的
    SQL的常用命令要看SQL语法