仔细检测mysql.txt输入有没有出错,至少你贴出来的是没有错的

解决方案 »

  1.   

    use database 好像不能用在 批处理里,你把它拿到外面来mysql.txt 
    -----------------------------------
    create tabele role(
      rolecode varchar(50),
      privilegecode varchar(50)
      );
    create table test(id int);
    ---------------------------------------------mysql -hlocalhost -uroot -pmysql witandm < d:\mysql\mysql.txt
      

  2.   

    把use witandm;
    改成:use witandm     --没有 ; 号
    就可以了。
    或是用楼上的方法也行。