title: Change the default value of MySQL global variables in XAMPP
body: <p>Working on local environment with Windows, Apache, MySQL, PHP, I usually debug SQL using the log files with the help of this 2 global settings:</p>
  
  <pre><code>SET GLOBAL general_log = 'ON';
  SET GLOBAL general_log_file = 'my_log.log';
  </code></pre>
  
  <p>The problem is these settings go away after a while.</p>
  
  <p>I originally thought it makes a difference with what user they are set but not when I tested, <strong>the global variables get reseted on MySQL restart</strong>, which is common on WAMPP environment.</p>
  
  <p>I tried to update <code>my.ini</code>, <code>my-default.ini</code> adding the following settings:</p>
  
  <pre><code> general_log = 'ON';
   general_log_file = 'my_log.log';
  </code></pre>
  
  <p>But with no effect.</p>
  
  <p>What is the proper way to change the default settings for MySQL in a WAMPP installation?</p>