SSH tunnel for mySQL
ssh -f -L 3306:127.0.0.1:3306 username@servername.com sleep 120
Should auto-disconnect when it’s no longer in use.
TextSnippets > kenzie > mysql
1798 users tagging and storing useful source code snippets
Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world (or not, you can keep them private!)
ssh -f -L 3306:127.0.0.1:3306 username@servername.com sleep 120
grant select, update, create, insert, delete on database.* to username@localhost identified by ‘password‘;
mysqldump -u root -p database > filename.sql
mysql -u root -p database < filename.sql