GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   MySql Database Help Please (https://gfy.com/showthread.php?t=231686)

soldierdog 02-05-2004 07:51 PM

MySql Database Help Please
 
I have a backup of my database and I need to restore it to a new MySql DB on another server. All of the Tables are already created and I dont' want to dump and recreate the DB. I just want to populate the new DB with the old DB's info.

Any help would greatly appreciated.


:helpme

- Jesus Christ - 02-05-2004 07:52 PM

you got SSH access?

com 02-05-2004 07:53 PM

Quote:

Originally posted by - Jesus Christ -
you got SSH access?
what he said

soldierdog 02-05-2004 07:55 PM

Yes, ssh

- Jesus Christ - 02-05-2004 07:56 PM

mysql -uUSERNAME -p dbname < /path/to/dump.sql



this script will work too but the above command is easier

http://www.ozerov.de/bigdump.php

soldierdog 02-05-2004 07:58 PM

Yes but when I do that command it says the table has already been created which it has. I'm worried about breaking something in the software that connects to it and would prefer to just insert the data from the old backup.

goBigtime 02-05-2004 08:00 PM

How did you backup the old database?

- Jesus Christ - 02-05-2004 08:01 PM

Well I would just rename the database you have there now then recreate it. Becasue hte backup you have is always going to try to recreate the tables unless you go in with a txt editor and remove all the table creation statments.

I highly doubt an unavialbe databse would "Break" any scripts.

soldierdog 02-05-2004 08:01 PM

I just dumped it. no special flags, maybe I'm just going to have to drop all the tables in the new DB and restore it.

soldierdog 02-05-2004 08:03 PM

Ok, thanks gusy. I'll backup this one restore the old one and see what happens. It should be fine.

Thanks for jumping in and helping me so quickly.

You guys are too cool.:thumbsup :thumbsup


All times are GMT -7. The time now is 07:55 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123