Advertisement
Guest User

Untitled

a guest
Feb 6th, 2017
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.17 KB | None | 0 0
  1. sub connect {
  2. $host = "d.d.ag.com";
  3. $database = "r_1m" ;
  4. $user = "d_ad" ;
  5. $pw = "C3";
  6. my $dsn = "DBI:mysql:host=$host";
  7. my $dbh = DBI->connect($dsn, $user, $pw) ||
  8. die "ERROR: can't connect to database servern";
  9. return $dbh;
  10. $host = "d.d.ag.com";
  11. $database = "r_curr" ;
  12. $user = "d_ad" ;
  13. $pw = "C3";
  14. my $dsn = "DBI:mysql:host=$host";
  15. my $dbh = DBI->connect($dsn, $user, $pw) ||
  16. die "ERROR: can't connect to database servern";
  17. return $dbh;
  18.  
  19. $host = "d.d.ag.com";
  20. $database = "s_1m" ;
  21. $user = "d_ad" ;
  22. $pw = "C3";
  23. my $dsn = "DBI:mysql:host=$host";
  24. my $dbh = DBI->connect($dsn, $user, $pw) ||
  25. die "ERROR: can't connect to database servern";
  26. return $dbh;
  27. $host = "d.d.ag.com";
  28. $database = "s_curr" ;
  29. $user = "d_ad" ;
  30. $pw = "C3";
  31. my $dsn = "DBI:mysql:host=$host";
  32. my $dbh = DBI->connect($dsn, $user, $pw) ||
  33. die "ERROR: can't connect to database servern";
  34. return $dbh;
  35. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement