#298028·homebrew-core

homebrew.mxcl.mysql.plist

Author: MacGritschCreated Aug 10, 2026Updated Aug 31, 2026

brew config AND brew doctor output OR brew gist-logs <formula> link

bash
HOMEBREW_VERSION: 6.0.15-174-g3ecc9ef

Your system is ready to brew.

Verification

  • My brew doctor output says Your system is ready to brew. and am still able to reproduce my issue.
  • I ran brew update and am still able to reproduce my issue.
  • I have resolved all warnings from brew doctor and that did not fix my problem.
  • I searched for recent similar issues at https://github.com/Homebrew/homebrew-core/issues?q=is%3Aissue and found no duplicates.
  • My issue is not about a failure to build a formula from source.
  • I did not use AI/LLM to create this issue, or I disclosed the tool and model used; I will answer maintainer questions myself without AI/LLM.

What were you trying to do (and why)?

In the homebrew.mxcl.mysql.plist the datadir is passed as an argument: --datadir=/opt/homebrew/var/mysql

This overwrites the datadir specified in the my.cnf file. There is also no way to overwrite the data-dir using environment variables. So there seems to be no way to change this?

In the past, it was possible to modify the file at /opt/homebrew/Cellar/mysql/9.7.1_1/homebrew.mxcl.mysql.plist (correct version path) which brew was using then as a template. But it seems that this does not work anymore.

otherwise: thank you for the great project!

What happened (include all command output)?

What did you expect to happen?

Step-by-step reproduction instructions (by running brew commands)

bash
-