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 |
My server just allows me to upload file size = 8Mb max. My sql file = 200 Mb. How do i restore ???
|
Quote:
|
Or you can split every tables with the maximum of 8MB in each file... That's the best way to go for!
|
I tried but i get a error:
Got error: 2002: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) when trying to connect -/bin/bash-2.05b$ Whats the problem, i use the command from your post, with my user and database name. |
Hmm that's weird. I'm not sure about that error because it has nothing to do with my tutorial. And I bet you have done something wrong while attempting to restore your forums.
|
Quote:
|
You can also try and use:
http://www.ozerov.de/bigdump.php It will allow for large dumps to be staggered, making it look like smaller pieces. |
I made it as described but my db file is only 1kb after downloading?
|
Should you close your board before backing up?
Thanks! |
All times are GMT. The time now is 06:53 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|