title: MySQL "mysql there is no such grant defined for user"
body: <p>This error happened when I granted all privileges to a new root account I just created.</p>
  
  <p>Steps to produce the problem:</p>
  
  <pre><code>CREATE USER 'root'@'localhost';
  GRANT ALL PRIVILEGES ON *.* TO 'root'@'localhost' WITH GRANT OPTION;
  FLUSH PRIVILEGES;
  SHOW GRANTS for 'root'@'localhost';
  </code></pre>
  
  <p>After "show grants" I got the error "mysql there is no such grant defined for user 'root' on host 'localhost'". There were no errors after executing the first three commands. The new user was created successfully.</p>
  
  <p>How do I solve this problem?</p>
  
  <p>More info:
  I'm running MySQL 5.7 on my MacOS laptop(OSX 10.10.5).</p>