The MySQL configuration file is usually located at /etc/mysql/my.cnf. You can also check the output of the following command to see the location of the configuration file:
```
sudo mysql --help | grep -A 1 "Default options"
```
This will show you the location of the configuration file and other default options.