| Member with 1,004 posts. THREAD STARTER | | Join Date: Dec 2011 Location: Johannesburg South Africa Experience: Intermediate | |
Solved: Creating a localhost user in phpMyAdmin I have imported a database I set up on my website using the host's 3rd party PMA (phpMyAdmin) software. I created a user for that website database using the Control Panel. I now want to simulate the same for localhost, so I used localhost (xampp) PMA to run an sql query... Code: CREATE USER 'surfwhee_jim'@'localhost' IDENTIFIED BY *****'james*****' there is a screen shot of the query attached.
All seems well, however when I attempt to gain access thus... PHP Code: $con = mysql_connect("localhost","surfwhee_jim","******james******") or die(mysql_error());
it gives me the following error response... Quote: |
Access denied for user 'surfwhee_jim'@'localhost' to database 'surfwhee_vehicles'
| can anyone see where I might be screwing up? 
(The passwords have been edited out - but are identical)
__________________ "I expect to pass through this world but once. Any good, therefore, that I can do or any kindness I can show to any fellow creature, let me do it now. Let me not defer or neglect it for I shall not pass this way again." |