Guest Posted November 10, 2007 Posted November 10, 2007 When I try to view what i adjusted to oscommerce on my localhost i receive the following warning: Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'rarefinds'@'localhost' (using password: YES) in C:\Program Files\xampp\htdocs\sites-oscomm\includes\functions\database.php on line 19 Unable to connect to database server! When I go to that folder and to line 19 it shows me the following:(starting with line 16-19) if (USE_PCONNECT == 'true') { $$link = mysql_pconnect($server, $username, $password); } else { $$link = mysql_connect($server, $username, $password); I have a username and a blank password for my sql is this what it is asking? Do I need to place "localhost" as the server? I am a newby and trying to feel myy way through this. Everytime I figure one error out there is another. I hope someone can help me through this. Thank you.
♥geoffreywalton Posted November 11, 2007 Posted November 11, 2007 Have you looked at page 78 of the documentation? Warning: mysql_connect(): Access denied for user: 'username@localhost' (Using password: YES) in /home/username/public_html/shop/includes/functions/database.php on line 19 Unable to connect to database server! Even if you had it wouldn't tell you there are 2 configuration.php files that need editing to have the correct user name and password. Enjoy Need help installing add ons/contributions, cleaning a hacked site or a bespoke development, check my profile Virus Threat Scanner My Contributions Basic install answers. Click here for Contributions / Add Ons. UK your site. Site Move. Basic design info. For links mentioned in old answers that are no longer here follow this link Useful Threads. If this post was useful, click the Like This button over there ======>>>>>.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.