Topic: 求助JSP连接MYSQL数据库 报错如下 |
Print this page |
1.求助JSP连接MYSQL数据库 报错如下 | Copy to clipboard |
Posted by: javajin Posted on: 2005-03-11 17:36 javax.servlet.ServletException: Communication failure during handshake. Is there a server running on 127.0.0.1:3306? org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:825) org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:758) org.apache.jsp.mysql_jsp._jspService(mysql_jsp.java:85) org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) |
2.Re:求助JSP连接MYSQL数据库 报错如下 [Re: javajin] | Copy to clipboard |
Posted by: javajin Posted on: 2005-03-11 17:37 root cause java.sql.SQLException: Communication failure during handshake. Is there a server running on 127.0.0.1:3306? org.gjt.mm.mysql.MysqlIO.init(Unknown Source) org.gjt.mm.mysql.Connection.connectionInit(Unknown Source) org.gjt.mm.mysql.jdbc2.Connection.connectionInit(Unknown Source) org.gjt.mm.mysql.Driver.connect(Unknown Source) java.sql.DriverManager.getConnection(DriverManager.java:512) java.sql.DriverManager.getConnection(DriverManager.java:171) org.apache.jsp.mysql_jsp._jspService(mysql_jsp.java:51) org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) |
3.Re:求助JSP连接MYSQL数据库 报错如下 [Re: javajin] | Copy to clipboard |
Posted by: flyrose25 Posted on: 2005-05-28 16:10 这好像是你的数据库的驱动的问题,可能是没有装好驱动,也可能是没有指向驱动的正确定位置。那就在环境变量里面设置。 |
4.Re:求助JSP连接MYSQL数据库 报错如下 [Re: javajin] | Copy to clipboard |
Posted by: phoenix_tree Posted on: 2005-06-02 13:38 Is there a server running on 127.0.0.1:3306? 看看有没有装好? |
Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1 客服电话 18559299278 客服信箱 714923@qq.com 客服QQ 714923 |