Advertisement
Guest User

Untitled

a guest
Mar 11th, 2017
138
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  1. MySQL server:
  2. IP: 192.168.0.1
  3. user: testing
  4. pass: testing123123
  5.  
  6. MySQL client #1:
  7. IP: 192.168.0.2
  8.  
  9. MySQL client #2:
  10. IP: 192.168.0.3
  11.  
  12. GRANT ALL PRIVILEGES ON *.* TO testing@'192.168.0.2' IDENTIFIED BY 'testing123123';
  13. flush privileges;
  14.  
  15. mysql -h192.168.0.1 -uuser_bla_bla -pbla_bla_bla
  16. ERROR 1045 (28000): Access denied for user 'user_bla_bla'@'192.168.0.2' (using password: YES)
  17.  
  18. 2017-03-11 12:13:10 82588 [Warning] Access denied for user 'user_bla_bla'@'192.168.0.2' (using password: YES)
  19.  
  20. mysql -h192.168.0.1 -uuser_bla_bla -pbla_bla_bla
  21. ERROR 1130 (HY000): Host '192.168.0.3' is not allowed to connect to this MySQL server
  22.  
  23. [mysqld]
  24. log_warnings = 2
  25. log_error=/var/log/mysql_error.log
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement