Backup and restore MySQL databases
mysqldump -u root -p databasename > database.sql
Restore the mysql database using the mysql monitor
mysql -u user_root -p db_name < sqldump.sql
mysqldump -u root -p databasename > database.sql
Restore the mysql database using the mysql monitor
mysql -u user_root -p db_name < sqldump.sql
No comments:
Post a Comment