1、从豆豆网下载源码;
2、默认是resin 服务器+web服务器(任何或者没有)+jsdk1.4+Mysql3.23
3、没有resin 服务器,部署到了Tomcat5.5,mysql5.0。
4、修改WEB-INF/classes/db.properties
drivers=org.gjt.mm.mysql.Driver
logfile=D://DevApps//Tomcat 5.0//webapps//acjspbbs//log.txt
mysql.url=jdbc:mysql://localhost:3306/caiforum?useUnicode=true&characterEncoding =8859_1
mysql.maxconn=1000
mysql.user=root
mysql.password=dhcc
5、运行,提示无法建立连接,控制台报错:Communication failure during handshake. Is there a server running on localhost:3306
6、google得到一近似答案:
在Mysql.com的官方网站上看到这个解释,是因为新的Mysql的认证机制发生了一些变化造成的,解决方法如下:
I'd to change the authentication method at the mysql server:
set password for <username>@<servername> = old_password('<password>');
将红色那部分敲进去就解决了。
原文地址:http://blog.csdn.net/liaoxitao/archive/2006/06/01/768201.aspx
7、在命令行执行:set password for root@localhost= old_password('dhcc');安装的第一、第二、第三步顺利,第四步出错;