![]() |
Database Error
i just moved from old web host to new webhost and i get database error ..
how can i fix this ? this is what i get in my technical email as error .. Code:
mysql_connect() [<a href='function.mysql-connect'>function.mysql-connect</a>]: Access denied for user 'champ_admin'@'localhost' (using password: YES) |
Check that the db infos are updated accordingly at the config.php file. If they are, then make sure that the forum db user has got full permissions and access to the db where he is assigned to.
|
DB names are different than config.php file .. can you check for me if possible please.. i am lost .
|
Quote:
P.s. Did you move the database to the new host btw? Can you tell us the exact procedure that you followed? |
i backed up from old host and uploaded the backed up file to new host server .. then they restored it and said that it got errors .. i know it cant be because that back is fine . it must have problem with giving permissions to database ..and after you mentioned i checked config.php and my sql on cpanel .. they both got different names .
|
Quote:
|
the DB name is different and the config.php names are different ..
with that being said .. i dont have to change the names of DB but must change config.php names .. am i correct .. but if i have to change the config names i want to say you some that these are the names i created 2 years ago and i never changed it .. how come i should change the names now with using the same database . i am new to it, dont take me wrong . --------------- Added [DATE]1289427390[/DATE] at [TIME]1289427390[/TIME] --------------- NeverMind .. i did it as you mentioned and now i get new error .. Quote:
|
Change the names in the config.php file, there are 3 DB settings in there that must be correct
DB username DB password DBname The username and dbname will look something like wrest_username and wrest_password The reason you need to change is now is that the DB name etc has all changed on the new server/host, and your settings in config.php must be changed to match. As always, keep a copy of the old one on your computer. |
thats not the issue now mate .. i done that and it is fixed .. its a hook issue + i disabled the hooks and now i get database error ..
Quote:
i had 3.8.0 almost year and a half ago then i upgraded it to 3.8.2 and then i upgraded to 4.0.3 and stayed on 4.0.3 for almost 8 months now .. and my backup is of 1 month old ... i dont know why it is showing 3.8.0 .. this is something so wired . please someone help fix this issue. |
It looks like the lastposterid column is missing in the forum table. Maybe something ddin''t go right during the database transfer.
|
Borbole is right, you are missing a comumn in the forum table, you can add this in PHPMyadmin. The reason for the error having a 3.8.0 tag on it is because the DB was 1st populated with a 3.8.0 install, its really not too important, but you will need to fix that table.
Once it is fixed you will need to run some maintenance tasks in the admin cp, rebuild thread and post information. Then run the DB check and repair tool, then run the Unique Indexes fix as well. You need to do this so every thing works correctly. If you dont know how to use PHPMyAdmin on your DB, get someone who does to fix that table for you!! |
Quote:
btw i tried to restore with an even one month old database and now i get this error .. Quote:
|
it sounds more like missing files or the wrong system files were uploaded..
|
i need a solution for it mate .. not intelligence ..
|
All times are GMT. The time now is 05:55 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|