title: Where can I find the MySQL log file in XAMPP
body: <p>I use PHP to access MySQL in XAMPP. My question is where I can find the MySQL log file if there is a DB error.</p>
  
  <p>Also, can I change the default location/name of that log file?</p>
  
  <p>Thank you</p>
  
  <p>///// Based on the coments //////</p>
  
  <pre><code>mysql&gt; show variables like '%log_file%';
  +---------------------------+------------------------------------+
  | Variable_name             | Value                              |
  +---------------------------+------------------------------------+
  | general_log_file          | C:/xampp/mysql/data/mysql.log      |
  | innodb_log_file_size      | 5242880                            |
  | innodb_log_files_in_group | 2                                  |
  | slow_query_log_file       | C:/xampp/mysql/data/mysql-slow.log |
  +---------------------------+------------------------------------+
  4 rows in set (0.00 sec)
  </code></pre>