Before you can connect to a database wiht a system besides phpmyadmin you have to edit the mysql user to allow connections from other places than *.dreamhost.com
So log into the Panel > Goodies > Manage MySql and edit the user you want to connect with. You should see a box where you can add in your IP address. After that's taken effect try and connect to your database again.
Hope that helps.
art.googlies.net - personal website