Home > Database > Mysql Tutorial > body text

How can we backup specific tables from database using mysqldump client program?

WBOY
Release: 2023-09-03 18:17:09
forward
626 people have browsed it

我们如何使用 mysqldump 客户端程序从数据库中备份特定表?

By using the mysql dump client program, we can back up specific tables in the database to files with the extension ".sql". It can be understood through the following example -

Example

In this example, with the help of mysql dump client program, we backup from the "query" database in a file named "student_info.sql" Table named "student_info". The following command will do this:

C:\mysql\bin>mysqldump -u root query student_info > student_info.sql
Copy after login

The above command will create a file named student_info.sql that contains dump information for the file named "student_info" in the database named "query".

The above is the detailed content of How can we backup specific tables from database using mysqldump client program?. For more information, please follow other related articles on the PHP Chinese website!

source:tutorialspoint.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template