Hello! I have just reinstalled WampServer after a general reformatting of my Vista computer. Added (with phpMyAdmin) my user ‘<user>’to the MySQL user table for localhost with password <password> and all privileges set to Y (I don’t remember how I did it in the previous installation). But now get “Warning: mysql_connect(): Access denied for user '<user>'@'localhost' (using password: YES)" in C:\Program Files\wamp\www\private\<filename>.php on line <linenumber> containing the command: $db=mysql_connect("localhost", "<user>", "<password>" );. No extraneous my.ini files on the system. Any suggestions?
Edited 1 time(s). Last edit at 09/13/2009 07:31PM by yfastud.
Thank you yfastud. Unfortunately config.inc.php seems to be read only (even when I try to edit it after a restart and before starting Wampserver, and the Windows "read only" flag is not set) so I cannot save the modified version.
See now that the whole phpMyAdmin folder is read only (and this therefore applies for all the files within, although Windows dos not show them as beng read only). Will try turning this off
It turned out that the whole wamp directory was read only. I had finally to temporarily turn off User Account Control to remove this, but I could then follow your instructions with success, and my original problem is now solved. Thanks once again.