Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Mysql_Connect


Browseit

Recommended Posts

Posted

I am not sure what happened but... I now receive this error when trying to access the administrative area of my website. I have checked the functions file that I have now with the original file that I downloaded from the site and all is the same. Thanks for any imput you might have.

 

 

Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'mysql'@'localhost' (using password: NO) in /home/browseit/public_html/admin/includes/functions/database.php on line 19

Unable to connect to database server!

 

Not Found

The requested URL /admin/function.mysql-connect was not found on this server.

 

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

 

 

--------------------------------------------------------------------------------

 

Apache/2.2.8 (Unix) mod_ssl/2.2.8 OpenSSL/0.9.8g DAV/2 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 Server at www.browseitshop.com Port 80

 

 

 

function tep_db_connect($server = DB_SERVER, $username = DB_SERVER_USERNAME, $password = DB_SERVER_PASSWORD, $database = DB_DATABASE, $link = 'db_link') { global $$link; if (USE_PCONNECT == 'true') { $$link = mysql_pconnect($server, $username, $password); } else { $$link = mysql_connect($server, $username, $password); } if ($$link) mysql_select_db($database); return $$link; } function tep_db_close($link = 'db_link') { global $$link; return mysql_close($$link); }

Posted

it is saying the database is unable to connect

 

check you database access details in your configure files

Regards

 

Mark A Reynolds

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...