mysqldump

mysqldump


==============================
mysqldump
==============================

mysqldump -h hostname-of-the-server -u mysql_user -p database_name > file.sql


wordpress-database-$(date+%F).sql

#import when using Plesk
mysql -uroot -p`cat /etc/psa/.psa.shadow` dnameb < 20Aug2020.sql