Advertisement
Guest User

Untitled

a guest
Jan 22nd, 2017
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.06 KB | None | 0 0
  1. <?php
  2. $servername = "192.168.1.167";
  3. $username = "demouser";
  4. $password = "password";
  5.  
  6. // Create connection
  7. $conn = mysqli_connect($servername, $username, $password);
  8.  
  9. // Check connection
  10. if (!$conn) {
  11. die("Connection failed: " . mysqli_connect_error());
  12. }
  13. echo "Connected successfully";
  14. ?>
  15.  
  16. +---------------------------------------------------------------------------------------------------------------+
  17. | Grants for demouser@localhost |
  18. +---------------------------------------------------------------------------------------------------------------+
  19. | GRANT USAGE ON *.* TO 'demouser'@'localhost' IDENTIFIED BY PASSWORD '*DB17DD535D122AED147A61C30CD5D01FB3BC5433' |
  20. | GRANT ALL PRIVILEGES ON `demodb`.* TO 'demouser'@'localhost' |
  21. +---------------------------------------------------------------------------------------------------------------+
  22.  
  23. +-------------------------------------------------------------------------------------------------------------------+
  24. | Grants for demouser@192.168.1.168 |
  25. +-------------------------------------------------------------------------------------------------------------------+
  26. | GRANT USAGE ON *.* TO 'demouser'@'192.168.1.168' IDENTIFIED BY PASSWORD '*DB17DD535D122AED147A61C30CD5D01FB3BC5433' |
  27. | GRANT ALL PRIVILEGES ON `demodb`.* TO 'demouser'@'192.168.1.168' |
  28. +-------------------------------------------------------------------------------------------------------------------+
  29.  
  30. Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
  31. tcp 0 0 0.0.0.0:3306 0.0.0.0:* LISTEN 2892/mysqld
  32. tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN 1704/master
  33. tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 1053/sshd
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement