我正在努力跟进 this tutorial启用对 MySQL 的远程访问。问题是,my.cnf
文件应该放在哪里?我正在使用 Mac OS X Lion。
最佳答案
This thread on the MySQL forum说:
By default, the OS X installation does not use a my.cnf, and MySQL just uses the default values. To set up your own my.cnf, you could just create a file straight in /etc.
OS X 在 /usr/local/mysql/support-files/
处提供了示例配置文件。
如果您在那里找不到它们,MySQLWorkbench 可以通过以下方式为您创建它们:
- 打开连接
- 在菜单中选择“实例”下的“选项文件”。
- MySQLWorkbench 将搜索 my.cnf,如果找不到,它会为您创建它
关于mysql - macOS 上 my.cnf 文件的位置,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10757169/