Guest User

Untitled

a guest
Oct 5th, 2017
27
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. <?php
  2. /* Connect to a MySQL database using driver invocation */
  3. $dsn = 'mysql:dbname=server;host=46.249.49.18';
  4. $user = 'root';
  5. $password = 'ASD23932nskan@4';
  6.  
  7. try {
  8. $odb = new PDO($dsn, $user, $password);
  9. } catch (PDOException $e) {
  10. echo 'Connection failed: ' . $e->getMessage();
  11. }
  12.  
  13. ?>
Add Comment
Please, Sign In to add comment