how to dump my db code example
Example 1: export all databases mysql
# Export
mysqldump -u root -p --all-databases > all.sql
Example 2: mysqldump cli command
Press CTRL+C to copy shell> mysqldump --databases db1 db2 db3 > dump.sql
# Export
mysqldump -u root -p --all-databases > all.sql
Press CTRL+C to copy shell> mysqldump --databases db1 db2 db3 > dump.sql