How can I get emacs sql-mode to use the mysql config file (.my.cnf)?
When I type mysql dbname at the bash prompt, I automatically connect to the database dbname with the username , password , and host information included in my .my.cnf file. When I use M-x sql-mysql in emacs, I am asked for all of this information again. Is there a way that I can get emacs sql mode to use the information in my .my.cnf file? I don't think that this is possible but you can set such stuff in the mode configuration itself: (setq sql-connection-alist '((pool-a (sql-product 'mysql) (sql-server "1.2.3.4") (sql-user "me") (sql-password "mypassword") (sql-database "thedb") (sql-port