I haven't seen this in the newbie FAQ, but if it has been said before, please excuse me -- I am not only a newbie to PHP/SQL, but also to this forum. 🙂
Here is my problem: I created a few users in my new mySQL server, including a webuser with this line:
GRANT SELECT on mydatabase.* TO webuser@'%' IDENTIFIED BY 'xxxxxxxx'
I FLUSH PRIVILEGES, and then then I run this script to test it:
<?php
echo mysql_connect('localhost', 'webuser', 'xxxxxxxx');
?>
When I run it, this is the result:
Warning: mysql_connect(): Access denied for user: 'webuser@localhost' (Using password: YES) in C:\inetpub\wwwroot\Kimya\info_msql.php on line 3
Any ideas on what I might be doing wrong? 🙂
Thanks a lot!