Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- try {
- url = "jdbc:mysql://" + mysqlHost + ":3306/" + mysqlDatabase;
- Class.forName("com.mysql.jdbc.Driver").newInstance();
- conn = DriverManager.getConnection(url, mysqlUser, mysqlPassword);
- } catch (Exception e) {
- System.err.println("Error trying to connect to the database! "+ url + ", " + mysqlUser + ", " + mysqlPassword);
- e.printStackTrace();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement