タイトルのままですが、-p オプション付きで dbconsole スクリプトを実行すると、config/database.yml からパスワードを読み込んで DB コンソールを起動してくれます。
-p なし
$ script/dbconsole production Enter password:
-p あり
$ script/dbconsole -p production Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 1783 Server version: 5.0.77-log Source distribution Type 'help;' or '\h' for help. Type '\c' to clear the buffer. mysql>