• Post category:StudyBullet-9
  • Reading time:4 mins read


Backup and Restore MySQL Databases and Tables

What you will learn

Identify Backup and Recovery Types

Setup Backup Recovery Directory

Backup databases with mysqldump

Restore database with mysqldump

Backup single table

Restore table from backup

Description

MySQL is one of the most recognizable technologies in the modern big data ecosystem. Often called the most popular database and currently enjoying widespread, effective use regardless of industry, it’s clear that anyone involved with enterprise data or general IT should at least aim for a basic familiarity of MySQL.

With MySQL, even those new to relational systems can immediately build fast, powerful, and secure data storage systems. MySQL’s programmatic syntax and interfaces are also perfect gateways into the wide world of other popular query languages and structured data stores.

In MySQL server administration, it is important to safeguard your data in case of human error or a system failure. To accomplish this, MySQL provides the ability to create backups of databases and tables.


Get Instant Notification of New Courses on our Telegram channel.


There may be situations when data gets lost or corrupted, for example, when users accidentally deleted or overwrote data. For these reasons, it is recommended to make a backup on a regular basis. Through this process, you can ensure data consistency in your databases and be sure that nothing critical happens to your data and it won’t be lost irrevocably. In addition, data backup helps keep data up-to-date and allows you to restore it at any time in the state you back it up before the data was damaged.

mysqldump is a command-line utility used to generate a MySQL logical database backup as a single .sql file with a set of SQL statements. The utility helps you dump MySQL tables, multiple databases, or their objects. Keep in mind that it is not possible to back up MySQL databases or data to separate .sql files with the mysqldump utility.

English
language

Content

MySQL Setup

Introduction
What is MySQL
Install MySQL on Windows
MySQL Workbench
Installing MySQL on Macs
MySQL Workbench Installation on Macs

MySQL Backup and Recovery

Introduction
Backup and Recovery Types
Setting up backup directory
Export data from MySQL Database
Export result set of a query
Backing yo databases
Restore database from backup
Backing up a single table
Restore table from backup