In Windows click Start, select Run and type cmd, then hit OK button.
Backing up via the command line
mysqldump -a -u USERNAME -p DATABASENAME > FILENAME.sql
Restoring via the command line
Drop the database (optional):
mysqladmin -u USERNAME -p drop DATABASENAME
Create the database:
mysqladmin -u USERNAME -p create DATABASENAME
Import the backup data:
mysql -u USERNAME -p DATABASENAME < FILENAME.sql
No comments:
Post a Comment