cd /d C:\Program Files\MySQL\MySQL Server 5.0\bin 
mysql  -u root -p123 
use bill 
update client,note set note.brand=client.brand where note.companyname=client.name and note.addtime!='2008-11-04' 
and note.addtime!='2008-11-05'; 上面我写的一个批处理文件,点击执行到mysql  -u root -p123这一句时就会卡在这里,那位高手指点下

解决方案 »

  1.   

    mysql  -u root -p123 
    这里错了MYSQL -uroot -p123
      

  2.   

    mysql  -u root -p123 
    -u后面不用加空格,直接输入用户名跟-p一样的
      

  3.   

    mysql  -u root -p123 
    是在执行这句进入MYSQL后卡住的  出现MYSQL>:
    就不再向下执行
      

  4.   


    cd /d C:\Program Files\MySQL\MySQL Server 5.0\bin
    mysql  -uroot -p123 -Dbill -e "update client,note set note.brand=client.brand where note.companyname=client.name and note.addtime!='2008-11-04' and note.addtime!='2008-11-05'"