Previous Thread
Next Thread
Print Thread
Hop To
Joined: Jan 2007
Posts: 170
D
Member
Member
D Offline
Joined: Jan 2007
Posts: 170
I am not well versed in php and mysql and am finding Gizmo's tutorials invaluable. Thank you Gizmo!

I am in the process of moving to a new VPS and in doing so I have made a trial run at moving my database using Gizmo's command line instructions. So now I have an old version of my database sitting on the new server.

In Gizmo's tutorial on backing up, he mentions that "And to restore said backup, after you purge data out of the MySQL database:" - which I believe would mean that I now have to purge that old database version before I can install the current database.

How do I do that? Any suggestions? All help is appreciated!



UBB user since 1998
Joined: Jan 2007
Posts: 170
D
Member
Member
D Offline
Joined: Jan 2007
Posts: 170
Hmmm... I tried selecting all of the tables in phpmyadmin and clicked "empty". I guess that works...


UBB user since 1998
Joined: Aug 2006
Posts: 1,358
Y
Veteran
Veteran
Y Offline
Joined: Aug 2006
Posts: 1,358
I usually copy the list of tables to a textfile, and do a search replace to end up with a large list of DROP TABLE statements.


[Linked Image from siemons.org]
Joined: Apr 2007
Posts: 3,940
Likes: 1
SD Offline
Former Developer
Former Developer
Joined: Apr 2007
Posts: 3,940
Likes: 1
hehe, i simply create a new DB with no tables and then import.. the mysqldump has the create tables and the mysql import specifies which DB you are importing to..

bada bing *poof*

Joined: Jan 2007
Posts: 170
D
Member
Member
D Offline
Joined: Jan 2007
Posts: 170
Yeah, I thought of that but I had a bad experience with that in the past. I am using Cpanel and using their mysql management tool - in the past when I deleted a BD and then tried to create a new on with the same name - the program would not let me. I would have to create a new DB with a different name frown


UBB user since 1998
Joined: Apr 2007
Posts: 3,940
Likes: 1
SD Offline
Former Developer
Former Developer
Joined: Apr 2007
Posts: 3,940
Likes: 1
no probs then.. what you did is fine.. you essentially dropped all the tables..

so you are at the point where you can create the tables smile

Joined: Jan 2007
Posts: 170
D
Member
Member
D Offline
Joined: Jan 2007
Posts: 170
Thank you smile


UBB user since 1998
Joined: Jun 2006
Posts: 16,299
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,299
Likes: 116
Use PHPMyAdmin and click "drop tables" on the table select screen; that's how I do it wink...


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum, Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Joined: Jan 2007
Posts: 170
D
Member
Member
D Offline
Joined: Jan 2007
Posts: 170
Thanks Gizmo, I will do that.


UBB user since 1998
Joined: Aug 2006
Posts: 1,358
Y
Veteran
Veteran
Y Offline
Joined: Aug 2006
Posts: 1,358
Originally Posted by Gizmo
Use PHPMyAdmin and click "drop tables" on the table select screen; that's how I do it wink...


Duh, how simple laugh

Fun how you can look over things for years laugh


[Linked Image from siemons.org]

Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
Bots
by Outdoorking - 04/13/2024 5:08 PM
Can you add html to language files?
by Baldeagle - 04/07/2024 2:41 PM
Do I need to rebuild my database?
by Baldeagle - 04/07/2024 2:58 AM
This is not a bug, but a suggestion
by Baldeagle - 04/05/2024 11:25 PM
spam issues
by ECNet - 03/19/2024 11:45 PM
Who's Online Now
2 members (Gizmo, Nightcrawler), 791 guests, and 189 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Stones
Stones
by isaac, August 19
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20230217)