The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Backup/restore using phpMyAdmin/SSH
Backing Up & Restoring a MySQL Database using phpMyAdmin / SSH ================================================== ===== This is just a short mini-tutorial explaining how to backup parts of the mySQL database using phpMyAdmin and also via SSH (Secure Shell) access. This tutorial should be of use to most people, as it's an important part of any website/forum maintenance. So, let's get started... Step 1 - Backing up using phpMyAdmin Note: Most good hosts provide phpMyAdmin (mySQL administration). If you do not know where it is or even if it exists on your server, just get in touch with your host.
Congratulations! You have successfully backed up your database / selected tables! Step 2 - Restoring your database using phpMyAdmin Note: Most good hosts provide phpMyAdmin (mySQL Administration). If you do not know where it is or even if it exists on your server, just get in touch with your host.
Step 3 - Backing up using SSH Note: Some hosts do not offer SSH access, I suggest contacting your host and asking him/her if SSH access is enabled and if so the details. A good program to use for connecting via SSH is PuTTY (Get it at: http://www.chiark.greenend.org.uk/~sgtatham/putty/). Don't know how to use it? Search on Google for a tutorial.
Step 4 - Restoring using SSH Note: Some hosts do not offer SSH access, I suggest contacting your host and asking him/her if SSH access is enabled and if so the details. A good program to use for connecting via SSH is PuTTY (Get it at: http://www.chiark.greenend.org.uk/~sgtatham/putty/). Don't know how to use it? Search on Google for a tutorial.
That's basically it I think, I believe I have covered everything? Anything I missed? Comments or suggestions? Just let me know! Hope this tutorial was as useful to you as it is to me. Thanks, -Snake www.metalgearforums.com |
#42
|
|||
|
|||
To login and backup a database in one line:
Code:
mysqldump --password=[password] -h [hostname] -u [username] [databasename] > [backupfile.sql] Code:
mysql --password=[password] -h [hostname] -u [username] [database_to_restore] < [backupfile] |
#43
|
|||
|
|||
I followed step by step the tutorial, SOmehow I might be doing something wrong.
When I imported my very small testing database onto a new server it said it succeeded. When I go into the forum page I expect to see the old members and old threads. Right? After all if I want to transfer my forum onto a new server, then what's the scope of backup. But in my case NOT. I only see the freshly installed vbulletin on my new server but not the treads and users. What am I doing wrong? In just a few words: I want to export my data and transfer it on a new database/server so I won't lose anything from my old forum |
#44
|
||||
|
||||
That's very useful tutorial .. thanks Snake ...
I'm running a big forum ( DB =~ 2 GB ) and for security I need to know the SSH command that enables me to save a redundant copy of the database their .. could anyone tell us about their experience in that field ? And if by chance anyone made a SSH or Linux script or maybe Cron that's automate that process , I hope that I know about it .. Regards , |
#45
|
||||
|
||||
Quote:
Quote:
|
#46
|
||||
|
||||
Hello, please any other split tool DB a part BigDumb? That I tried some month a go
For some reason it dont works good for me, I need to remove some queries from my DB that block the importing process. |
#47
|
|||
|
|||
Quote:
mysql -u MyUserName -p MyDBName -h mysql.myhost.com < /full/path/to/sqldump.sql |
#48
|
||||
|
||||
thanks for post
|
#49
|
|||
|
|||
for those with SSH access its very easy to backup and to compress (gzip took my DB from 1.4GB to 327MB - Took about 3 minutes
mysqldump --opt -Q -u <username> -p <database name> | gzip > database.sql.gz to restore.... gunzip < database.sql.gz | mysql -u <username> -p <database name> hope this is clear and helps someone out |
#50
|
||||
|
||||
Yeah, but I don't think most of the hosts out there provide SSH access especially when they're running a small forum. That's why the either way to backup and/or restore is by phpMyAdmin or some other SQL tool. Shell is pretty much useful for a very large forum.
You're quite welcome, letsjoy. |
#51
|
||||
|
||||
Quote:
|
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|