ya_dood Posted November 22, 2006 Posted November 22, 2006 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 :)
mtechama Posted November 22, 2006 Posted November 22, 2006 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!
ya_dood Posted November 22, 2006 Author Posted November 22, 2006 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?
Chris Smith Posted November 22, 2006 Posted November 22, 2006 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:
ya_dood Posted November 22, 2006 Author Posted November 22, 2006 hmm...includes/configure.php and admin/includes/configure.php do have the same username,password and database name
ya_dood Posted November 22, 2006 Author Posted November 22, 2006 it's all set now-thanks for the help :)
Recommended Posts
Archived
This topic is now archived and is closed to further replies.