Guest User

Untitled

a guest
Oct 10th, 2018
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.13 KB | None | 0 0
  1. Traceback (most recent call last):
  2. File "test.py", line 7, in <module>
  3. db = MySQLdb.connect(host="192.168.0.142", user="safepro", passwd="Safepro@123", db="ers")
  4. File "/usr/lib/python3/dist-packages/MySQLdb/__init__.py", line 81, in Connect
  5. return Connection(*args, **kwargs)
  6. File "/usr/lib/python3/dist-packages/MySQLdb/connections.py", line 204, in __init__
  7. super(Connection, self).__init__(*args, **kwargs2)
  8. _mysql_exceptions.OperationalError: (1130, "Host 'SP004-PRECISION' is not allowed to connect to this MariaDB server")
  9.  
  10.  
  11. Traceback (most recent call last):
  12. File "test.py", line 7, in <module>
  13. db = MySQLdb.connect(host="127.0.0.1", user="safepro", passwd="Safepro@123", db="ers")
  14. File "/usr/lib/python2.7/dist-packages/MySQLdb/__init__.py", line 81, in Connect
  15. return Connection(*args, **kwargs)
  16. File "/usr/lib/python2.7/dist-packages/MySQLdb/connections.py", line 204, in __init__
  17. super(Connection, self).__init__(*args, **kwargs2)
  18. _mysql_exceptions.OperationalError: (1045, "Access denied for user 'safepro'@'localhost' (using password: YES)")
  19.  
  20. Help me with the solution, where should I change the setting.
Add Comment
Please, Sign In to add comment