Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $servername = "192.168.1.167";
- $username = "demouser";
- $password = "password";
- // Create connection
- $conn = mysqli_connect($servername, $username, $password);
- // Check connection
- if (!$conn) {
- die("Connection failed: " . mysqli_connect_error());
- }
- echo "Connected successfully";
- ?>
- +---------------------------------------------------------------------------------------------------------------+
- | Grants for demouser@localhost |
- +---------------------------------------------------------------------------------------------------------------+
- | GRANT USAGE ON *.* TO 'demouser'@'localhost' IDENTIFIED BY PASSWORD '*DB17DD535D122AED147A61C30CD5D01FB3BC5433' |
- | GRANT ALL PRIVILEGES ON `demodb`.* TO 'demouser'@'localhost' |
- +---------------------------------------------------------------------------------------------------------------+
- +-------------------------------------------------------------------------------------------------------------------+
- | Grants for demouser@192.168.1.168 |
- +-------------------------------------------------------------------------------------------------------------------+
- | GRANT USAGE ON *.* TO 'demouser'@'192.168.1.168' IDENTIFIED BY PASSWORD '*DB17DD535D122AED147A61C30CD5D01FB3BC5433' |
- | GRANT ALL PRIVILEGES ON `demodb`.* TO 'demouser'@'192.168.1.168' |
- +-------------------------------------------------------------------------------------------------------------------+
- Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
- tcp 0 0 0.0.0.0:3306 0.0.0.0:* LISTEN 2892/mysqld
- tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN 1704/master
- 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