On the terbium host there is a shell script called sql, which conveniently opens the mysql prompt on the database for the needed project, for example sql frwikiquote.
This script does two things (at least): Looks up the host, and then actually runs mysql on that host.
Having a way to look up the host without running mysql would be useful, too. For example, if I need to connect to a host from another script in a way that doesn't involve running the mysql command as such.