title: Where do I set ONLY_FULL_GROUP_BY mode?
body: <p>Now I'm using PHPMyAdmin on my PHP project. But I have an issue like that:</p>
  <blockquote>
  <p>Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'anyc6783_db.exchangerix_exchanges.created' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by</p>
  </blockquote>
  <p>I am attempting:</p>
  <pre class="lang-php prettyprint-override"><code>SET GLOBAL sql_mode=(
      SELECT REPLACE(@@sql_mode,' ONLY_FULL_GROUP_BY','')
  )
  </code></pre>
  <p>So, I searched on google and then I get that statement. But where I have to use that statement? config.php or db.php?</p>
  <p>If you have experience, please help me.</p>