fatal error: 'mysql.h' file not found #685
-
| What OS and which version do you use?macOS 14 How did you installed mysql client library?brew install mysql-clientOutput from  | 
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 3 replies
-
| An alternative would be installing  | 
Beta Was this translation helpful? Give feedback.
-
| Looks like this was due to a cursed combination of environment variables in my previous terminal. I opened up a fresh terminal and now I'm getting a new error: $ pip install mysqlclient  | 
Beta Was this translation helpful? Give feedback.
-
| More info: 
 https://www.redhat.com/en/blog/new-warnings-and-errors-clang-16 | 
Beta Was this translation helpful? Give feedback.
-
| I was able to fix the issue by adding the following lines to my ~/.zshrc file. (I'm using "mysql-client" from Homebrew.) export MYSQLCLIENT_LDFLAGS="-L/opt/homebrew/opt/mysql-client/lib -lmysqlclient -rpath /usr/local/mysql/lib" | 
Beta Was this translation helpful? Give feedback.
See #688.
You are using innovation (beta) version of MySQL. Use MySQL 8.0 instead.