-
Pages
Richard Hart
richard
null@ur-ban.com
My Companies:
tradernomics.com
contraswap.com
publisha.com (coming soon)
50mealswithstrangers.com (coming soon)
My Links
-
Recent Posts
- Thoughtbot Clearance & mongomapper
- Getting out of bed hack: Eat an apple
- Broken Window Policy of Programming
- Beggars can’t be choosers
- Prioritizing Web Usability Notes
- Missing menubar icons in OSX 10.6.2
- Essential reading for developers
- What’s your business hook?
- Don’t use PHPMyAdmin. SSH tunnel instead.
- Law of Demeter and the delegate method
Flickr
-
RSS Links

Don’t use PHPMyAdmin. SSH tunnel instead.
If you’re still using phpMyAdmin to admin your remote database, then you’re doing it wrong. Don’t expose your database to the outside world like this, instead use an SSH tunnel. In your terminal simply create the tunnel:
ssh -fNg -L 8888:127.0.0.1:3306 {your_username}@{yourdomain.com}Then in your MySQL interface of choice just connect to 127.0.0.1 port 8888 and voila, you’ll be connected to your remote database.
Apps like Querious even let you setup the connection internally without having to tunnel through in Terminal.