Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

create dump file from database in mysql

Tags:

mysql

dump

following is the that I create dump from mysql database.

mysqldump -u root tempbkk > ttt.dump 

but I want to create a dump that exclude one or more file while creating dump from database we select.What is the command for that ?

like image 797
chetan Avatar asked Mar 29 '10 11:03

chetan


People also ask

How do I create a SQL dump file?

To generate a dump select the database or table in the Object Browser and select Database -> Backup/Export -> Backup Database As SQL Dump… This option is also available in Table -> Backup/Export -> Backup Database As SQL Dump... or just press Ctrl+Alt+E.

What is dump file in MySQL?

It dumps one or more MySQL databases for backup or transfer to another SQL server. The mysqldump command can also generate output in CSV, other delimited text, or XML format.


1 Answers

mysqldump -u user -p some_database > some_database_dump.sql

like image 118
Eimantas Avatar answered Sep 24 '22 13:09

Eimantas