问答详情
源自:2-2 WAMPServer服务控制面板介绍

必须提前安装Mysql

mysql> 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 'show databases' at line 2



提问者:qq_慕了凉笙无了歌_13781712 2018-09-26 11:19

个回答

  • 锟斤铐烫烫烫
    2019-12-21 11:21:52
    已采纳

    mysql的命令以分号结尾,回车不算结尾,所以你实际执行的命令是show databasesshow databases;

    解决方法,直接输show databases;(注意有分号)即可