Hey everyone,
I have been getting to learning PHP and now, MySQL, which I must say is quite fun
I want to add a user to my MySQL database, through PHPMyAdmin, but it keeps giving me an error "access denied", when I try to add the user in the SQL query tab.
I am using GoDaddy, so I had to manually create the user outside PHPMyAdmin. I thought the SQL code to do this would be:
GRANT INSERT, UPDATE, DELETE, SELECT
ON DatabaseName
TO Username@Host
IDENTIFIED BY 'Password';
I ran the above code (of course, inserting real values by DabaseName, Username@Host, 'Password'), and it gives me an error of access denied.
Is the SQL code I am using wrong or is there something that just isn't right??
I have been getting to learning PHP and now, MySQL, which I must say is quite fun
I want to add a user to my MySQL database, through PHPMyAdmin, but it keeps giving me an error "access denied", when I try to add the user in the SQL query tab.
I am using GoDaddy, so I had to manually create the user outside PHPMyAdmin. I thought the SQL code to do this would be:
GRANT INSERT, UPDATE, DELETE, SELECT
ON DatabaseName
TO Username@Host
IDENTIFIED BY 'Password';
I ran the above code (of course, inserting real values by DabaseName, Username@Host, 'Password'), and it gives me an error of access denied.
Is the SQL code I am using wrong or is there something that just isn't right??