c:\mysql\bin\>mysql -h localhost -u root -p
enter password:
然后
mysql>use test;然后就行了,运行 sql语句即可

解决方案 »

  1.   

    不要装myodbc
    下载一个mysql用户手册看看
      

  2.   

    或者去mysql\bin目录下,记得有个图形端的工具,可以运行sql语句。
      

  3.   

    按默认路径安装
    然后在命令提示符下输入:c:\mysql\bin\mysqld-nt
    这时不会有提示
    在提示符后键入"mysql"并回车,如果mysql运行正常将出现如下信息
    welcome to the mysql monitor. commands end with;or\p
    your mysql commection id is 1 to server version:3.23.34a-debug
    type 'help;' or'\h' for help .type '\c'to cleat the buffer
    mysql>
    最后一行出现的“mysql>”就是mysql的命令提示符。如果出现的是:
    error 2003 :can't connect to mysql server on'localhost'(10061)
    则需要重新加载