以前用的mysql5.0.45安装版的,用了一段时间以后重启服务器就连不上了,在服务里看还是运行着的,怎么都连不上数据库。没有办法卸载重新安装吧,可是到最后一步的时候怎么都过不去了,网上的解决方法也不行。又下了免安装版的5.1.6,第一次运行可以用,可是重启服务器又不行了,状态和安装版的一样,后来在mysql官方论坛看到了一个高手的解决办法,现提供在此以备用。 Thank you for the bug report. Sorry but this isn't bug, try the below steps: 1- Be sure using the Task manager none mysqld process is running as service. mysqld-nt --standalone --console mysql -uroot -p you will see something like below: c:\mysql\bin>mysql -uroot -p Type 'help;' or '\h' for help. Type '\c' to clear the buffer. mysql> You need to provide a password if you during the install had configured 就是不用安装在服务里,直接在mysql命令后面加上参数用dos窗口运行。 就是mysqld-nt --standalone --console |