title: How can I get emacs sql-mode to use the mysql config file (.my.cnf)?
body: <p>When I type <code>mysql dbname</code> at the bash prompt, I automatically connect to the database <code>dbname</code> with the <code>username</code>, <code>password</code>, and <code>host</code> information included in my <code>.my.cnf</code> file.</p>
  
  <p>When I use <code>M-x sql-mysql</code> in emacs, I am asked for all of this information again.</p>
  
  <p>Is there a way that I can get emacs sql mode to use the information in my <code>.my.cnf</code> file?</p>