Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Class.forName("com.mysql.jdbc.Driver");
- // Setup the connection with the DB
- Properties info = new Properties();
- info.put("characterEncoding", "UTF-8");
- info.put("user", "root");
- info.put("password", "");
- info.put("autoReconnect", "true");
- info.put("useSSL", "false");
- info.put("failOverReadOnly", "false");
- info.put("maxReconnects", "10");
- info.put("connectTimeout", "2000");
- DriverManager.setLoginTimeout(10);
- mConnection = DriverManager.getConnection("jdbc:mysql://192.168.100.10:8080/flats_flx", info);//here it's stuck
- mStatement = mConnection.createStatement();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement