|
Joined: Apr 2002
Posts: 474
Enthusiast
|
Enthusiast
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.
|
|
|
|
Joined: Aug 2000
Posts: 1,609
Addict
|
Addict
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.
|
|
|
|
Joined: Apr 2002
Posts: 474
Enthusiast
|
Enthusiast
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?
|
|
|
|
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.
|
|
|
|
Joined: Apr 2002
Posts: 474
Enthusiast
|
Enthusiast
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... 
|
|
|
|
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. 
|
|
|
|
Joined: Jan 2002
Posts: 674
Junior Member
|
Junior Member
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
|
|
|
|
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 at the moment - but expanding all the time....)
|
|
|
|
Joined: Apr 2002
Posts: 474
Enthusiast
|
Enthusiast
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?
|
|
|
|
Joined: Apr 2002
Posts: 474
Enthusiast
|
Enthusiast
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.
|
|
|
|
Joined: Apr 2002
Posts: 474
Enthusiast
|
Enthusiast
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.
|
|
|
|
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 at the moment - but expanding all the time....)
|
|
|
|
Joined: Apr 2002
Posts: 474
Enthusiast
|
Enthusiast
Joined: Apr 2002
Posts: 474 |
Well i had to break down and RTFM so far so good. i will keep you posted !
|
|
|
|
Joined: Apr 2002
Posts: 474
Enthusiast
|
Enthusiast
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! 
|
|
|
|
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 at the moment - but expanding all the time....)
|
|
|
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.
|
|
Posts: 1,157
Joined: July 2001
|
|
Forums63
Topics37,575
Posts293,931
Members13,823
|
Most Online6,139 Sep 21st, 2024
|
|
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
|
|
|
|