Previous Thread
Next Thread
Print Thread
Rate Thread
#274048 05/26/2004 3:40 PM
Joined: Apr 2002
Posts: 474
Enthusiast
Enthusiast
Offline
Joined: Apr 2002
Posts: 474
I want to duplicate my DB and use it for my beta site using 6.5 what is the best way
to duplicate my site? and upgrade it/ or do a fresh install with old db?

I just want to play around offline w/ a dupe, I need to add some mods back in
and can't go live till I figure it out.

Sponsored Links
sdf123 #274049 05/26/2004 3:57 PM
Joined: Aug 2000
Posts: 1,609
Addict
Addict
Offline
Joined: Aug 2000
Posts: 1,609
I used phpmybackup to backup my db, then I went in and did some renaming so it would create a new db instead of overwriting the old.

eslmix #274050 05/26/2004 4:20 PM
Joined: Apr 2002
Posts: 474
Enthusiast
Enthusiast
Offline
Joined: Apr 2002
Posts: 474
The only renaming i see is if i open the file that i downloaded there is a database name All i have to change is that to something other?

sdf123 #274051 05/26/2004 4:49 PM
Joined: Oct 2003
Posts: 2,305
Old Hand
Old Hand
Joined: Oct 2003
Posts: 2,305
change any and all occurences of the GOOD database to the NEW database name and that will create a duplicate with the right name.

234234 #274052 05/26/2004 11:09 PM
Joined: Apr 2002
Posts: 474
Enthusiast
Enthusiast
Offline
Joined: Apr 2002
Posts: 474
Ok I have php/mysql and phpmyadmin installed on my local machine i have downloaded my databases via my vertexthost CP and via the ftp from a backup, and via phpadmin.

I cannot seem to figure out how to get my local version to import this data?! non of the version I download do anything...


Sponsored Links
sdf123 #274053 05/27/2004 2:14 AM
Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
OK - on your live database - do a MySQL Dump (the Export tab in phpMyAdmin) and download the file to your computer.

Then create a new database - then using phpMyAdmin, select SQL and click "Browse" to select the file from your computer. That'll upload and reimport this to the new database.

If you'd like Vertex to duplicate your database for you - Open a Ticket with the name of the database you want duplicated and your Cpanel login info and we can do this for you if you're stuck.

Daine #274054 05/27/2004 2:28 AM
Joined: Jan 2002
Posts: 674
Junior Member
Junior Member
Offline
Joined: Jan 2002
Posts: 674
is there a way to do it without downloading and reuploading? I would like to get the new beta a run too

Kelly #274055 05/27/2004 2:42 AM
Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
It can be done at a command line using the mysqldump command.


To dump the db:

mysqldump dbname -u username -p > dump.sql


To restore the db:
mysql newdbname -u username -p < dump.sql


there are more details here:
http://www.ubbcentral.com/support/docs/ubbthreads/UBBthreads_backup_transfer.html

Daine #274056 05/27/2004 8:12 AM
Joined: Feb 2002
Posts: 2,286
Veteran
Veteran
Joined: Feb 2002
Posts: 2,286
The instructions are slightly incorrect - or should I saym I can't get the syntax to work as stated.

The instructions say...

mysqldump –u username –p=password databasename > filename.dump

mysql –u username –p=password databasename < filename.dump


But the method I use is...

mysqldump -u username -ppassword databasename > backup.dump

mysql newdatabasename -u username -ppassword < backup.dump

Which is similar to the code that Josh wrote above - but the '=' before the password will error out as mentioned in the documentation.


Fans Focus - Focusing on Fans of Sport

(Okay - mainly football (the British variety wink at the moment - but expanding all the time....)
Daine #274057 05/27/2004 11:06 AM
Joined: Apr 2002
Posts: 474
Enthusiast
Enthusiast
Offline
Joined: Apr 2002
Posts: 474
on my local machine in phpmyadmin next to the browse button
the max file size says (Max: 2,048KB) my databases is over 100mb.

how do I change this?

Sponsored Links
sdf123 #274058 05/27/2004 11:17 AM
Joined: Apr 2002
Posts: 474
Enthusiast
Enthusiast
Offline
Joined: Apr 2002
Posts: 474
also on my local machine in terminal I can't execute the mysql statement I remember something about symbolic links and have searched for my notes but cant seem to remember the method of getting it to work.

sdf123 #274059 05/28/2004 3:09 PM
Joined: Apr 2002
Posts: 474
Enthusiast
Enthusiast
Offline
Joined: Apr 2002
Posts: 474
Still trying. I would very much like to get this running on my local machine so I can save bandwidth. And space on the server.

sdf123 #274060 05/28/2004 3:55 PM
Joined: Feb 2002
Posts: 2,286
Veteran
Veteran
Joined: Feb 2002
Posts: 2,286
If you can't do it via the command line or phpmyadmin - then you could always backup using the internal backup tool within threads - install a test copy of the same version of threads - change the database details to the new one - and restore the database.

Can't see why that shouldn't work


Fans Focus - Focusing on Fans of Sport

(Okay - mainly football (the British variety wink at the moment - but expanding all the time....)
Gorlum #274061 05/28/2004 4:35 PM
Joined: Apr 2002
Posts: 474
Enthusiast
Enthusiast
Offline
Joined: Apr 2002
Posts: 474
Well i had to break down and RTFM so far so good. i will keep you posted !

sdf123 #274062 05/29/2004 3:25 AM
Joined: Apr 2002
Posts: 474
Enthusiast
Enthusiast
Offline
Joined: Apr 2002
Posts: 474
I did it! got the board to install correctly. And upgrade with only a few hiccups.
I even managed to apply a few hacks back. 6.5 has been worth the wait!

sdf123 #274063 05/31/2004 3:51 AM
Joined: Feb 2002
Posts: 2,286
Veteran
Veteran
Joined: Feb 2002
Posts: 2,286
Glad to hear things are slowly working themselves out.


Fans Focus - Focusing on Fans of Sport

(Okay - mainly football (the British variety wink at the moment - but expanding all the time....)

Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
AllenAyres
AllenAyres
Texas
Posts: 21,079
Joined: March 2000
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20221218)