2003下 tomcat 连mysql问题的解决

现象: 在XP下是好的,但在2003下,tomcat抛出异常:Communication failure during handshake. Is there a server running on localhost:3306?  

解决办法:set password for <username>@<servername> = old_password('<password>'); 
 (mysql环境下输入

还有一种 思路是:
 
把mm.mysql-2.0.4-bin.jar换成mysql-connector-java-3.1.5-gamma-bin.jar

是因为新的Mysql的认证机制发生了一些变化造成的)

posted @ 2007-10-11 11:30  竹君子  阅读(95)  评论(0编辑  收藏  举报