- Enter to MySQL/MariaDB server command-line tool (change root with your username and password):
mysql -u root -proot- Set the general log file path:
SET GLOBAL general_log_file='/var/log/mysql/mycustom.log';| /* | |
| Copyright 2017 Hidetake Iwata | |
| Licensed under the Apache License, Version 2.0 (the "License"); | |
| you may not use this file except in compliance with the License. | |
| You may obtain a copy of the License at | |
| http://www.apache.org/licenses/LICENSE-2.0 | |
| Unless required by applicable law or agreed to in writing, software |