Déplacer une base de données d’un serveur à un autre en une ligne de commande

mysqldump -u root -pPASSWORD --all-databases | ssh USER@NEW.HOST.COM 'cat - | mysql -u root -pPASSWORD'

Source: http://www.marcus-povey.co.uk/2013/03/25/moving-a-mysql-database-between-servers-using-a-single-ssh-command/


Leave a Reply

Your email address will not be published. Required fields are marked *