How To Enable/Change MySQL general_log_file location.
1- Make a full backup of your database
2- Shutdown your mysql server.
3- Create/Choose the new location where the file will be written and make sure is owned by the mysql user and mysql group. In our case the new location will be
"/mysql_log"
4- Edit you my.cnf file and add to [mysqld] the new "log_slow_queries" path value.
5- Relocate general_log_file.log file to the new locations keeping the original file permissions. This only if the general_log_file.log was enabeled already. If it does not exixsts
then create it before you start the server.