import all databases mysql
snippet in sql

export all databases mysql

user5200

 # Export
 mysqldump -u root -p --all-databases > all.sql

import all databases mysql

user8557

# Import
mysql -u root -p < all.sql