LINUX How to using mysqldump

mysqldump writes information as SQL statements to the standard output. You can save the output in a file:
shell> mysqldump [arguments] > file_name
To dump all databases, invoke mysqldump with the --all-databases option:
shell> mysqldump -uusername -pxxxxxx --all-databases > dump.sql
To dump only specific databases, name them on the command line and use the --databases option:
shell> mysqldump -uusername -pxxxxxx --databases db1 db2 db3 > dump.sql

Comments

Popular posts from this blog

Java : Variables Declaring

SQL Self JOIN