pomper une base mysql a distance

10/02/2015

== easy ==
ssh root@server "mysqldump -u root -pxxx dbname" > file.sql

== tunnel ssh ==
ssh -fNg -L 3307:127.0.0.1:3306 myuser@remotehost.com
mysql -h 127.0.0.1 -P 3307 -u dbuser -p db

Raccourcis