[Err] 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 'mysql' at line 12

解决方案 »

  1.   

    mysql>SHOW TABLES;
    4 ROW IN SET(0.00sec)
      

  2.   

    use 数据库名称;
      

  3.   

    错误信息说你12行的'mysql'附近有问题,
    你截个图,包含mysql的命令和报错信息
      

  4.   

    直接 show tables; 
      

  5.   

    show create table 表名。
      

  6.   

    输入除mysql>以外的代码,课本使用的是命令行,mysql>是一个命令执行完之后自动显示的,不用你输入。
      

  7.   

    详细图是表结构的意思?describe 表名;另外,楼主看的书难道是m玉树琼林5.7从入门到精通么?
      

  8.   

    desc emp8;