Django/Ubuntu: Error 1045, "Access denied for user 'www-data'@'localhost' (using password: YES)"

I am trying to test out a Log-In page for a Django site hosted publicly on Apache2 by logging in remotely. However when entering any credentials to test I get the following error:

[1045, "Access denied for user 'www-data'@'localhost' (using password: YES)"]

I am assuming that this means the www-data Apache2 default user can't access my MySQL table? What would be the best way to allow access safely?

Back to Top