Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

YOWZA- just broke the site!


ya_dood

Recommended Posts

yikes,

someone else was working with the site using Navicat and broke the site.

 

I can't access the site or the admin area but I can ftp in and use the cpanel. the user nina_osc1 is still in tact, the password is fine in the configuration.php file and i checked the permissions in the file manager in the cpanel and that is all fine as well. Below is the error i get in the browser:

 

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

Unable to connect to database server!

 

 

thanks :)

Link to comment
Share on other sites

yikes,

someone else was working with the site using Navicat and broke the site.

 

I can't access the site or the admin area but I can ftp in and use the cpanel. the user nina_osc1 is still in tact, the password is fine in the configuration.php file and i checked the permissions in the file manager in the cpanel and that is all fine as well. Below is the error i get in the browser:

 

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

Unable to connect to database server!

thanks :)

 

 

Make sure that your both of your configure.php files at the bottom of the file make sure that you database information is currectlly same as your database itself. if it is someone maybe changing your database information on the server itself.

Wade Morris

Amarillo, Texas

 

Before you do any changes on your site you need to do BACKUP! BACKUP!

Link to comment
Share on other sites

are you referring to going into phpmyadmin? If so I haven't worked with that before. Could I try to delete the user in the cpanel and add it back?

 

No he is refering to your includes/configure.php and admin/includes/configure.php e.g.

 

// define our database connection

define('DB_SERVER', ''); // eg, localhost - should not be empty for productive servers

define('DB_SERVER_USERNAME', 'YOUR DATABASE USERNAME HERE');

define('DB_SERVER_PASSWORD', 'YOUR DATABASE PASSWORD HERE');

define('DB_DATABASE', 'YOUR DATABASE NAME HERE');

define('USE_PCONNECT', 'false'); // use persistent connections?

define('STORE_SESSIONS', ''); // leave empty '' for default handler or set to 'mysql'

?>

 

:thumbsup:

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...