Welcome, Guest. Please Login or Register.
May 04, 2024, 11:59:07 PM
Home Help Search Log in Register
News: If you are still using YaBB SE, please consider upgrading to SMF as soon as possible.

YaBB SE Community  |  General Category  |  Feedback  |  Database duplicator « previous next »
Pages: [1] Reply Ignore Print
Author Topic: Database duplicator  (Read 2399 times)
luisr
Full Member
***
Posts: 120


Left blank to save space.

Database duplicator
« on: June 06, 2003, 04:04:04 AM »
Reply with quote

Hi there!

I am in the process of upgrading my board from 1.3.1 to 1.5.3.  This is not the usual upgrade, I installed 1.5.3 fresh in a separate folder while keeping the existing board untouched.  The reason is to keep the existing forum alive while I do some custom tweaking to the template and a few modules and also be able to test everything without disturbing normal board traffic and usage.

Now the new board is practically finished and ready to be launched.  But I need to transfer the database first before I apply the database update.  What I was trying to do was to dump the whole thing using phpMyAdmin but I can only download the resulting .sql file to my computer and then re-upload the entire thing again to run a restore script that creates a duplicate database with a different name.  I am having a problem with the download part in that the .sql file never comes out complete, probably because I am downloading at dial-up speed.

Anyhow, I find this step of downloading and uploading completely unnecessary.

How can I do the database dump and leave the resulting .sql file in the web server, or better yet, simply duplicate the database in a single step?

Is there a script that will do that?  I don't know PHP or mySQL although I do know Perl.

Thanks.
Logged
[Unknown]
Global Moderator
YaBB God
*****
Posts: 7830


ICQ - 179721867unknownbrackets@hotmail.com WWW
Re:Database duplicator
« Reply #1 on: June 06, 2003, 04:38:00 AM »
Reply with quote

Yes, I wrote a script like that....

I don't know where I put it, but... it basically was a short PHP script that used SHOW CREATE TABLE and CREATE TABLE ... SELECT to do the job.  Pretty simple.

-[Unknown]
Logged
luisr
Full Member
***
Posts: 120


Left blank to save space.

Re:Database duplicator
« Reply #2 on: June 07, 2003, 04:25:08 AM »
Reply with quote

Yes... and that script would be....
Logged
groundup
Disciple of Joe, Head Cleric
Mod Team
YaBB God
*****
Posts: 2983


Error 309: Please notify the administrator of this

WWW
Re:Database duplicator
« Reply #3 on: June 07, 2003, 05:27:01 PM »
Reply with quote

Joseph or Jeff has one in the completed mods board. Seek and ye shall find.
Logged

http://www.fastfinancialfreedom.org - financial freedom is a myth
http://www.fastfinancialfreedom.org - financial freedom is a myth
http://www.fastfinancialfreedom.org - financial freedom is a myth
fastfinancialfreedom.org
luisr
Full Member
***
Posts: 120


Left blank to save space.

Re:Database duplicator
« Reply #4 on: June 07, 2003, 07:06:31 PM »
Reply with quote

Could you provide a link?  I searched the Completed Mods forum for the word "duplicate" and none of the results had to do with duplicating a database.
Logged
luisr
Full Member
***
Posts: 120


Left blank to save space.

Re:Database duplicator
« Reply #5 on: June 08, 2003, 06:37:46 PM »
Reply with quote

Well, the database duplicator is no longer needed.  I found an alternate solution.  My web host provides a database backup utility that produces a compressed file I could download entirely.  I did just that, downloaded a backup of the database and applied the upgrade to the live forum.  Everything went ok and now I finally have an up to date YaBB SE 1.5.3 forum.

Thanks anyway.
Logged
groundup
Disciple of Joe, Head Cleric
Mod Team
YaBB God
*****
Posts: 2983


Error 309: Please notify the administrator of this

WWW
Re:Database duplicator
« Reply #6 on: June 08, 2003, 08:30:27 PM »
Reply with quote

In the next version, yse will be able to do that for you.
Logged

http://www.fastfinancialfreedom.org - financial freedom is a myth
http://www.fastfinancialfreedom.org - financial freedom is a myth
http://www.fastfinancialfreedom.org - financial freedom is a myth
fastfinancialfreedom.org
luisr
Full Member
***
Posts: 120


Left blank to save space.

Re:Database duplicator
« Reply #7 on: June 08, 2003, 10:08:18 PM »
Reply with quote

Don't forget the calendar holiday editor.  ;)
Logged
Pages: [1] Reply Ignore Print 
YaBB SE Community  |  General Category  |  Feedback  |  Database duplicator « previous - next »
 


Powered by MySQL Powered by PHP YaBB SE Community | Powered by YaBB SE
© 2001-2003, YaBB SE Dev Team. All Rights Reserved.
SMF 2.1.4 © 2023, Simple Machines
Valid XHTML 1.0! Valid CSS

Page created in 0.444 seconds with 19 queries.