Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Traceback (most recent call last):
- File "test.py", line 7, in <module>
- db = MySQLdb.connect(host="192.168.0.142", user="safepro", passwd="Safepro@123", db="ers")
- File "/usr/lib/python3/dist-packages/MySQLdb/__init__.py", line 81, in Connect
- return Connection(*args, **kwargs)
- File "/usr/lib/python3/dist-packages/MySQLdb/connections.py", line 204, in __init__
- super(Connection, self).__init__(*args, **kwargs2)
- _mysql_exceptions.OperationalError: (1130, "Host 'SP004-PRECISION' is not allowed to connect to this MariaDB server")
- Traceback (most recent call last):
- File "test.py", line 7, in <module>
- db = MySQLdb.connect(host="127.0.0.1", user="safepro", passwd="Safepro@123", db="ers")
- File "/usr/lib/python2.7/dist-packages/MySQLdb/__init__.py", line 81, in Connect
- return Connection(*args, **kwargs)
- File "/usr/lib/python2.7/dist-packages/MySQLdb/connections.py", line 204, in __init__
- super(Connection, self).__init__(*args, **kwargs2)
- _mysql_exceptions.OperationalError: (1045, "Access denied for user 'safepro'@'localhost' (using password: YES)")
- Help me with the solution, where should I change the setting.
Add Comment
Please, Sign In to add comment