问题
How do I get emacs 'sql-mysql' (or mysql for that matter) to read a custom group from .my.cnf?
I have different options when calling mysql from the cli and within emacs, and, and I wondered if I could achieve this by using a custom group in the .my.cnf, i.e. something like:
[emacs] options...
In general, can I ask the mysql client to read a custom group?
Cheers, Dan.
回答1:
In general, yes, you can add custom groups to my.cnf. This article explains how.
来源:https://stackoverflow.com/questions/8772032/configuring-custom-groups-in-my-cnf