Geoff_Montee

Untitled

Mar 2nd, 2015
254
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MySQL 3.97 KB | None | 0 0
  1. MariaDB [(none)]> GRANT ALL PRIVILEGES ON *.* TO 'mhauser'@'127.0.0.1' IDENTIFIED BY 'password';
  2. Query OK, 0 rows affected (0.00 sec)
  3.  
  4. MariaDB [(none)]> GRANT ALL PRIVILEGES ON *.* TO 'mhauser'@'192.168.1.46' IDENTIFIED BY 'password';
  5. Query OK, 0 rows affected (0.00 sec)
  6.  
  7. MariaDB [(none)]> \q
  8. Bye
  9. [gmontee@localhost ~]$ mysql -h 127.0.0.1 -u mhauser -ppassword
  10. Welcome to the MariaDB monitor.  Commands end with ; or \g.
  11. Your MariaDB connection id is 38
  12. Server version: 10.0.16-MariaDB-log MariaDB Server
  13.  
  14. Copyright (c) 2000, 2014, Oracle, MariaDB Corporation Ab and others.
  15.  
  16. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
  17.  
  18. MariaDB [(none)]> SELECT CURRENT_USER();
  19. +-------------------+
  20. | CURRENT_USER()    |
  21. +-------------------+
  22. +-------------------+
  23. 1 row in set (0.00 sec)
  24.  
  25. MariaDB [(none)]> SHOW PROCESSLIST;
  26. +----+-------------+-----------------+------+---------+--------+-----------------------------------------------------------------------------+------------------+----------+
  27. | Id | User        | Host            | db   | Command | Time   | State                                                                       | Info             | Progress |
  28. +----+-------------+-----------------+------+---------+--------+-----------------------------------------------------------------------------+------------------+----------+
  29. |  5 | system user |                 | NULL | Connect | 319645 | Waiting for master to send event                                            | NULL             |    0.000 |
  30. |  6 | system user |                 | NULL | Connect | 319426 | Slave has read all relay log; waiting for the slave I/O thread to update it | NULL             |    0.000 |
  31. | 38 | mhauser     | 127.0.0.1:40508 | NULL | Query   |      0 | init                                                                        | SHOW PROCESSLIST |    0.000 |
  32. +----+-------------+-----------------+------+---------+--------+-----------------------------------------------------------------------------+------------------+----------+
  33. 3 rows in set (0.00 sec)
  34.  
  35. MariaDB [(none)]> \q
  36. Bye
  37. [gmontee@localhost ~]$ mysql -h 192.168.1.46 -u mhauser -ppassword
  38. Welcome to the MariaDB monitor.  Commands end with ; or \g.
  39. Your MariaDB connection id is 39
  40. Server version: 10.0.16-MariaDB-log MariaDB Server
  41.  
  42. Copyright (c) 2000, 2014, Oracle, MariaDB Corporation Ab and others.
  43.  
  44. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
  45.  
  46. MariaDB [(none)]> SELECT CURRENT_USER();
  47. +----------------------+
  48. | CURRENT_USER()       |
  49. +----------------------+
  50. +----------------------+
  51. 1 row in set (0.00 sec)
  52.  
  53. MariaDB [(none)]> SHOW PROCESSLIST;
  54. +----+-------------+--------------------+------+---------+--------+-----------------------------------------------------------------------------+------------------+----------+
  55. | Id | User        | Host               | db   | Command | Time   | State                                                                       | Info             | Progress |
  56. +----+-------------+--------------------+------+---------+--------+-----------------------------------------------------------------------------+------------------+----------+
  57. |  5 | system user |                    | NULL | Connect | 319662 | Waiting for master to send event                                            | NULL             |    0.000 |
  58. |  6 | system user |                    | NULL | Connect | 319443 | Slave has read all relay log; waiting for the slave I/O thread to update it | NULL             |    0.000 |
  59. | 39 | mhauser     | 192.168.1.46:54299 | NULL | Query   |      0 | init                                                                        | SHOW PROCESSLIST |    0.000 |
  60. +----+-------------+--------------------+------+---------+--------+-----------------------------------------------------------------------------+------------------+----------+
  61. 3 rows in set (0.00 sec)
  62.  
  63. MariaDB [(none)]> \q
  64. Bye
Advertisement
Add Comment
Please, Sign In to add comment