请前往 模块插件 激活 UI Manage 然后刷新
Global Clouddy

Account Center

Support

  1. Portal Home
  2. Knowledgebase
  3. Backup
  4. How to back up MySQL databases
Login
Knowledgebase

How to back up MySQL databases

MySQL is the most popular database software in the world. It's important to make sure you have a backup. Data loss can be caused by many reasons: hardware failure, software change, etc. You can always restore the entire database using a backup.

The syntax of exporting database with nysqldump command is. This shows us the following:

Access user name database;

Mysqldump may require you to enter a password;

Here's how to back up the database to an SQL file called name. Sq.

Recover database

Mainly! If you encounter problems, you can easily restore the database. Login start

MySQL - U user name - P

Then create a new database

Create database newdb;

Exit MySQL

Export

After that, you can import the SQL file into the new database

MySQL - U user name - P newdb < name.sql

This completes the SQL file into the new database process!

  • 979 Users Found This Useful
Was this answer helpful?

Related Articles

How To Backup, Restore or Transfer MySQL/MariaDB Databases on Ubuntu

Today, Backup is a significant procedure and a very important part of working with databases....

How To Make Backup And Restore PostgreSQL Databases on Ubuntu 18.04

PostgreSQL is a open source database management system that can be used to store information...

How To Drop a Database on MySQL

MySQL is a Relational Database Management System that is known for being very easy to use, nice...