Advertisement
Guest User

Untitled

a guest
Feb 20th, 2019
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. private DBHandler(String ServerIP, String userName, String password)
  2. {
  3. DB_USERNAME = userName;
  4. DB_PASSWORD = password;
  5.  
  6. DB_CONNECTION_URL = "jdbc:mysql://"+ServerIP+"/Test";
  7. connection = createConnetcion(DB_DRIVER, DB_CONNECTION_URL, DB_USERNAME, DB_PASSWORD);
  8. System.out.println("Connection created");
  9.  
  10. }
  11.  
  12. GRANT ALL PRIVILEGES on Test.* to 'user'@'WS1A101.ushustech.com' identified by 'password';
  13. FLUSH PRIVILEGES;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement