I admit I’m kind of a nerdy designer. I’m picky about text editors and love the command line. I like tools that save me time, and so at some point I started collecting and writing bash alias’s to help me do things like use compass, start a local server, and interact with Drupal via drush. I recently started using different macs at home and work, and so I needed a nice way to keep these little tools aligned between both places.
1. create a batch file as described here: http://nothingoutoftheordinary.com/2007/04/07/access-mysql-command-line-…
2. create shortcut to that batch file in your favorite launcher
1. connect via ssh
2. mysql -u username -p dbname
1. connect to ssh
2. mysql -h mysqlhostname.domain.com -u user -p dbname