I now recommend that everyone use WP-CLI instead! This project will not be maintained further.
A simple command line tool for connecting to a WordPress database. If you've ever spent time poking around in a wp-config.php
file looking for database credentials, this tool is for you.
wpsql path/to/wp-config.php