Guest User

Untitled

a guest
Jan 18th, 2019
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. public abstract Database()
  2. {
  3. ReadConfig();
  4. connectionstring = "SERVER=" + server + ";" +
  5. "DATABASE=" + database + ";" +
  6. "UID=" + username + ";" +
  7. "PASSWORD=" + password + ";";
  8. try
  9. {
  10. connection = new MySqlConnection(connectionstring);
  11. }
  12. catch (MySqlException ex)
  13. {
  14. LogService.Log("ERROR - " + ex.ToString());
  15. }
  16. }
Add Comment
Please, Sign In to add comment