mysql - macOS 上 my.cnf 文件的位置

标签 mysql database macos

我正在努力跟进 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 可以通过以下方式为您创建它们:

  1. 打开连接
  2. 在菜单中选择“实例”下的“选项文件”。
  3. MySQLWorkbench 将搜索 my.cnf,如果找不到,它会为您创建它

关于mysql - macOS 上 my.cnf 文件的位置,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10757169/

相关文章:

PHP mySQL 检索问题

mysql - 0、NULL、空字符串、默认值 - MySql 问题

MySQL JDBC语法错误异常

cocoa - 编写一个简单的应用程序将文件转换为 pdf

c - 如何使用leaks命令行工具查找内存泄漏?

macos - Applescript 使用 if/else if 和一个列表

php - CakePHP 中长时间运行 shell 的数据库连接问题

python 数据库抽象来存储未腌制的数据结构

php - Zend Framework 2 数据库错误

database - 无法从数据库表中获取消息。 ErrorException 说 :count(): Parameter must be an array or an object that implements Countable