MySQL on the CLI

1
2
3
4
5
6
7

# Import - execute SQL
mysql -u username -p dbname < db.sql


# Export - db dump
mysqldump -u username -p dbname > db.sql

Related Articles