Jump to content

rahulawa

Members
  • Posts

    24
  • Joined

  • Last visited

Posts posted by rahulawa

  1. Connection conn = null;
    try {

     

    conn=DriverManager.getConnection("jdbc:mysql://tommy.heliohost.org:2083/db?","user","pass");
    Statement stmt = conn.createStatement();
    ResultSet rs = stmt.executeQuery("select something from table");
    while(rs.next())
    {
    System.out.println(rs.getInt(1));
    }
    // Do something with the Connection
    } catch (SQLException ex) {
    // handle any errors
    System.out.println("SQLException: " + ex.getMessage());
    System.out.println("SQLState: " + ex.getSQLState());
    System.out.println("VendorError: " + ex.getErrorCode());
    }

     

    is this connection is ok
    because still the same error of packet too large
  2. username:rajesha1

     

    exporting database from myadmin leads export.php not .sql file



    solved using cpanel backup



    com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: User rajesha1_food already has more than 'max_user_connections' active connections

     

    i haved closed all the connection

     

    con.closed();

     

    after opening it

     

    ten why this error in jsp



    tthis error sometimes comes sometimes go in different pages

     

    still having the same error

×
×
  • Create New...