这是报的错误
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";  
麻烦大家了,谢谢

解决方案 »

  1.   

    下面的很详细,自己对比检查下
    http://ilvs.bokee.com/3867038.html
      

  2.   

    url="jdbc:mysql://210.35.133.146:3300(这个试过3306,也试过不写)/mysqluser=root&password=123456&useUnicode=true&characterEncoding=GB2312";  
    -----错误应该写成:
    url="jdbc:mysql://210.35.133.146:3300(这个试过3306,也试过不写)/mysql(要连接的数据库名称)?user=root&password=123456&useUnicode=true&characterEncoding=GB2312";
      

  3.   

    HTTP Status 500 - --------------------------------------------------------------------------------type Exception reportmessage description The server encountered an internal error () that prevented it from fulfilling this request.exception javax.servlet.ServletException: Access denied for user: 'root@server' (Using password: YES)
    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)这到底是什么错啊,那里帮忙啊
      

  4.   

    那位帮忙一下啊,一直都是这个错误
    HTTP Status 500 - --------------------------------------------------------------------------------type Exception reportmessage description The server encountered an internal error () that prevented it from fulfilling this request.exception