The storage location of my.cnf file on macOS
P粉242535777
P粉242535777 2023-08-21 16:58:58
0
2
474
<p>I'm trying to follow this tutorial to enable remote access to MySQL. The question is, where should the <code>my.cnf</code> file be placed? I'm using Mac OS X Lion. </p>
P粉242535777
P粉242535777

reply all(2)
P粉005417748

For Mac OS X Maverick, if MySQL is installed through Homebrew, its location is /usr/local/opt/mysql/my.cnf

P粉950128819

This MySQL forum post says:

OS X provides sample configuration files at /usr/local/mysql/support-files/.

If you can't find them there, MySQL Workbench can create them for you with the following steps:

  1. Open a connection.
  2. Select the "Administration" tab in the left column, and then select "Options File" under "INSTANCE" in the menu.
  3. MySQL Workbench will search for my.cnf and if not found, it will create it for you.
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!