Sunday, September 22, 2019

Mysql export/import database

You want to export database run the following command
mysqldump -u [user] -p [dbName] > D:\output.sql

In case you want to import data to database from sql file run the following command
mysql -u [user] -p [dbName]  < D:\output.sql

No comments:

Post a Comment