본문 바로가기
Programming/Database

MySQL Database export & import

by peter paak 2019. 11. 1.
728x90

Database backup

database export

mysqldump -u id -p password database > database.sql

database import

mysql -u id -p password database < database.sql

before you import the database, login into mysql and create an empty schema so that you can import from the exported database.

728x90