title: MySQL: When is Flush Privileges in MySQL really needed?
body: <p>When creating new tables and a user to go along with it, I usually just invoke the following commands:</p>
  
  <pre><code>CREATE DATABASE mydb;
  GRANT ALL PRIVILEGES ON mydb.* TO myuser@localhost IDENTIFIED BY "mypassword";
  </code></pre>
  
  <p>I have never ever needed to utilize the <code>FLUSH PRIVILEGES</code> command after issuing the previous two commands. Users can log in and use their database and run PHP scripts which connect to the database just fine. Yet I see this command used in almost every tutorial I look at.</p>
  
  <p>When is the <code>FLUSH PRIVILEGES</code> command really needed and when is it unnecessary?</p>