MySQL Database Backup

Source: Internet
Author: User

MySQL database backup is indispensable for website development, because we need to back up online data with a large amount of data, so we need to backup the program. MySQL Database Backup
If you do not want to lose any database in MySQL, you should back up the database every week or even every day. Depending on the database you are using-whether it is storing Forum information, employee information, or your expenditure information-you will need to select a backup calendar to meet your needs.

You may or may not know that MySQL databases are only files stored on your Web server. This fact makes the entire backup and recovery process very simple and painless once you know how to do it.

Different backup methods
There are many ways to create a MySQL backup. However, no matter which application, control panel tool, or SSH script is used, all backups apply to two types of backups: dump or raw material backup.

MySQL self-unloading
A MySQL dump is slightly lower than the raw material backup, because it creates all SQL queries and needs to create tables, databases, and all the information required for inserting queries for backup to tables in the database.

If you want to execute a manual database dump without your assistance on the control panel, then run the SSH command to your Web server and do the following (from MySql.com ):

Mysqldump-label =/path/direction/Some/directory-select db _ name
If you open the MySQL dump file, you will see a series of SQL queries, you may be able to understand (if you have read the entire tutorial! ).

Original MySQL backup
A MySQL original backup is fast, because it does not translate content databases to human readable SQL queries. However, there are not many control panels that support this type of backup, so don't worry if your hosting service provider does not have this option set for you.

CPanel Plugin in the MySQL backup control panel.

Click "backup" from the application selection screen ". This will enable your backup application to generate and download the complete backup of your website.

If you want to back up a database separately, find the title "Download SQL database backup" or other similar. Each database should be listed below this title and you have created it. Just press the name of the database to back up and save it to the computer.

This is all done! Now, as long as you have a regular backup schedule, in case of an incredible occurrence and your web host loses all the database information!

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.