Skip to content
Advertisement

MySQL dump by query

Is it possible to do mysqldump by single SQL query?

I mean to dump the whole database, like phpmyadmin does when you do export to SQL

Advertisement

Answer

not mysqldump, but mysql cli…

you can redirect it out to a file if you want :

Update: Original post asked if he could dump from the database by query. What he asked and what he meant were different. He really wanted to just mysqldump all tables.

User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement