这是报的错误
type Exception reportmessage description The server encountered an internal error () that prevented it from fulfilling this request.exception javax.servlet.ServletException: Unable to connect to any hosts due to exception: java.net.SocketException: java.net.ConnectException: Connection refused** BEGIN NESTED EXCEPTION ** java.net.SocketException
MESSAGE: java.net.ConnectException: Connection refusedSTACKTRACE:
数据装完后做了这个
GRANT ALL PRIVILEGES ON *.* TO root(用户名)@localhost.server(服务器名) IDENTIFIED BY '123456(密码)'
这是连接字符
url="jdbc:mysql://210.35.133.146:3300(这个试过3306,也试过不写)/mysqluser=root&password=123456&useUnicode=true&characterEncoding=GB2312";
麻烦大家了,谢谢
type Exception reportmessage description The server encountered an internal error () that prevented it from fulfilling this request.exception javax.servlet.ServletException: Unable to connect to any hosts due to exception: java.net.SocketException: java.net.ConnectException: Connection refused** BEGIN NESTED EXCEPTION ** java.net.SocketException
MESSAGE: java.net.ConnectException: Connection refusedSTACKTRACE:
数据装完后做了这个
GRANT ALL PRIVILEGES ON *.* TO root(用户名)@localhost.server(服务器名) IDENTIFIED BY '123456(密码)'
这是连接字符
url="jdbc:mysql://210.35.133.146:3300(这个试过3306,也试过不写)/mysqluser=root&password=123456&useUnicode=true&characterEncoding=GB2312";
麻烦大家了,谢谢
http://ilvs.bokee.com/3867038.html
-----错误应该写成:
url="jdbc:mysql://210.35.133.146:3300(这个试过3306,也试过不写)/mysql(要连接的数据库名称)?user=root&password=123456&useUnicode=true&characterEncoding=GB2312";
at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:498)
at org.apache.jsp.index_jsp._jspService(index_jsp.java:90)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:92)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:809)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:162)这到底是什么错啊,那里帮忙啊
HTTP Status 500 - --------------------------------------------------------------------------------type Exception reportmessage description The server encountered an internal error () that prevented it from fulfilling this request.exception