Well, finally spending more than a day, what worked for me is:
general-log general_log_file = /var/log/mysql-query.log
For almost 10 years on all Linux systems that I have ever used and installed, which should be at least 100, if not more, it has always been a simple entry, such as log = <path to the log file> in the [mysqld ]. Apparently, on the Mac, there was also what I read from various blogs, etc., however, in this particular setting that I do, this is the first time I set it up as shown above.
So my current working file /etc/my.cnf is as follows:
[client] socket=/var/mysql/mysql.sock [mysqld] socket=/var/mysql/mysql.sock general-log general_log_file = /var/log/mysqld.log
I had to do:
touch /etc/my.cnf chown _mysql /etc/my.cnf
to create it.
I also had to do:
touch /var/log.mysqld.log chown _mysql /var/log/mysqld.log
then restart mysql via Workbench. Also try restarting through the command line as follows:
/usr/local/mysql/bin/mysqladmin -uroot -p shutdown sudo /usr/local/mysql/bin/mysqld_safe &
The main thing, finally, it works, and I can move forward with my day.
source share