RockMTP
03-07-2007, 01:20 PM
I need to copy everything from my old db to a new db as I get loads of db errors (over 8700 so far)
I have been working on this for nearly two days and its been driving me up the wall. My server company haven't really been much help and this is the first time i've ever had to do anything like this.
I've been getting database errors on my forum. For some reason the db would also boot all the users off, them show a database error screen on the index page, then 5 mins later the forum come back.
My server company told me to create a new database and import the old one.
I did this, changed the config.php file and the forum index page showed database error.
I changed the config file back to the old details and the forum came back.
VB looked at this also and changed the config file, got the same errors and told me:
I adjusted the config file quickly to see what the error was, I've now changed it back.
It seems the connection is fine, but the database is either missing tables or is empty.
Make sure the database backup is restored correctly into the new database before adjusting config.php
Now I can see the difference between the old db and the new db, there are 135 tables in the old and 9 in the new but how do I copy this db to the new one?
I've been talking to my server company for the last 2 days and they can't seem to help me.
The last thing they told me was:
You are getting these error as two database usernames are different. In our system database name and db username are same for a database.
Please check the .sql/backup file and correct the statement in the username field and then try to restore.
Or the best way you can do, take the babk (not needed if you have already), then delete the old database, after sometime create the same database (with the same name) and then import so that you will not get the errors as you are getting now.
What does that mean?
I'm losing the will to live!
My members are getting seriously fed up as well now!
I'm using a shared server with mysql V5,
When i backed up the old db it was 493kb. I exported the db from server to my desktop direct from sql and it was 15mb.
I saved everything on the root, as far as i can see i did everything right!
Please pleasae please help as I don't know what else to do!
I have been working on this for nearly two days and its been driving me up the wall. My server company haven't really been much help and this is the first time i've ever had to do anything like this.
I've been getting database errors on my forum. For some reason the db would also boot all the users off, them show a database error screen on the index page, then 5 mins later the forum come back.
My server company told me to create a new database and import the old one.
I did this, changed the config.php file and the forum index page showed database error.
I changed the config file back to the old details and the forum came back.
VB looked at this also and changed the config file, got the same errors and told me:
I adjusted the config file quickly to see what the error was, I've now changed it back.
It seems the connection is fine, but the database is either missing tables or is empty.
Make sure the database backup is restored correctly into the new database before adjusting config.php
Now I can see the difference between the old db and the new db, there are 135 tables in the old and 9 in the new but how do I copy this db to the new one?
I've been talking to my server company for the last 2 days and they can't seem to help me.
The last thing they told me was:
You are getting these error as two database usernames are different. In our system database name and db username are same for a database.
Please check the .sql/backup file and correct the statement in the username field and then try to restore.
Or the best way you can do, take the babk (not needed if you have already), then delete the old database, after sometime create the same database (with the same name) and then import so that you will not get the errors as you are getting now.
What does that mean?
I'm losing the will to live!
My members are getting seriously fed up as well now!
I'm using a shared server with mysql V5,
When i backed up the old db it was 493kb. I exported the db from server to my desktop direct from sql and it was 15mb.
I saved everything on the root, as far as i can see i did everything right!
Please pleasae please help as I don't know what else to do!