I am getting a pretty obvious error message from my script, but I know my details are right and that I have grant requests from this web service (000webhost.net). Apparently others on the web are not getting this error and after 3 days of this message, I am getting pretty frustrated! Does anyone know how to fix it through my provider:
Access denied for user ‘a3040562_kputts’@’10.1.1.18’ to database ‘ireport’
Also, here is the piece of sample code incase others think I am typing in the wrong information:
// Make a MySQL Connection
mysql_connect("mysql4.000webhost.com", "a3040562_kputts", "(censored)") or die(mysql_error());
mysql_select_db("ireport") or die(mysql_error());
You are successfully connecting to the database server, but your user does not have the necessary MySQL permissions to use that particular database. You will need to execute a
GRANTquery as a privileged user (or one withGRANT OPTIONpermissions on that database).To allow this user to use the database (but not necessarily any tables):
To allow this user full permission on all objects in that database: