1.Login mysql command
root@sv:/# mysql -u dbuser -p
2.Query mysql variables
mysql> show variables like "%log%";
3. View path log file in variables
general_log_file
log_error
slow_query_log_file
root@sv:/# mysql -u dbuser -p
mysql> show variables like "%log%";