MySQLdb python connection using non-root account?
Posted: Mon Oct 17, 2016 7:12 pm
I can connect successfully to my DB using my root account through MySQLdb.
I made a new user account (webguy) w/ only SELECT, INSERT, and UPDATE priveledges, but the connection fails with the following message..
The same account (webuy) works fine with my php connection, but not with the python connection
Code: Select all
db = MySQLdb.connect("192.168.1.664", "root", "MyRootPassword", "piclock")Code: Select all
_mysql_exceptions.OperationalError: (1045, "Access denied for user 'webguy'@'192.168.1.204' (using password: YES)")