How to backup and restore a MYSQL database through SSH

preview_player
Показать описание
Follow us:

TO BACK UP:

/usr/bin/mysqldump -u USERNAME -p DATABASENAME --single-transaction --quick --lock-tables=false > /LOCATION/TO/DATABASE/BACKUP.sql

TO RESTORE:

mysql -u USERNAME -p DATABASENAME < /LOCATION/TO/DATABASE/BACKUP.sql
Рекомендации по теме
Комментарии
Автор

How do we do this for a specific dba within a cpanel account?

mauamolat
Автор

what if you save the backup file on the client computer?

tewelrewel
Автор

after taking backup there is only one table is visible to us, but there are 7 tables and data's are not visible to us

nithishkumar