2003下 tomcat 连mysql问题的解决

来源:互联网 发布:天龙八部手游刷图软件 编辑:程序博客网 时间:2024/05/20 01:37

现象: 在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的认证机制发生了一些变化造成的)

原创粉丝点击