I am trying to updated the my.cnf file to increase the buffer pool size for a query I am running in python via mysql because I keep getting the error:
OperationalError: 2013 (HY000): Lost connection to MySQL server during query
Now I have located the file and get:
/opt/homebrew/etc/my.cnf
/opt/homebrew/Cellar/mysql/8.0.30/.bottle/etc/my.cnf
Now I am trying to figure out how update this file. I have read using sudo command then enter the password, which I do but I get command not found. I am assuming I am doing this wrong.
sudo: /opt/homebrew/etc/my.cnf: command not found
Any and all help will be much appreciated.
After attempting to do the nano command my screen gives me this. So leads me to believe that this is not where the file is.
This is what is seen when doing this command:
sudo /opt/homebrew/etc/my.cnf
# Default Homebrew MySQL server config
[mysqld]
# Only allow connections from localhost
bind-address = 127.0.0.1
mysqlx-bind-address = 127.0.0.1