title: MySQL: ERROR 1142 (42000) and ERROR 1064 (42000)
body: <p>I'm using windows 7. I've downloaded <code>mysql-5.5.16-win32.zip</code> and installed it. I started MySQL server successfully, but I get this error:</p>
  
  <pre><code>C:\Program Files\Mysql\bin&gt;mysql
  Welcome to the MySQL monitor.  Commands end with ; or \g.
  Your MySQL connection id is 2
  Server version: 5.5.16 MySQL Community Server (GPL)
  
  mysql&gt; select user, host, password from mysql.user;
  ERROR 1142 (42000): SELECT command denied to user ''@'localhost' for table 'user
  '
  mysql&gt; mysql -u root -p
      -&gt; select user, host, password from mysql.user;
  ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that
  corresponds to your MySQL server version for the right syntax to use near 'mysql
   -u root -p
  select user, host, password from mysql.user' at line 1
  mysql&gt; mysql -u root -p root
      -&gt; select user, host, password from mysql.user;
  ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that
  corresponds to your MySQL server version for the right syntax to use near 'mysql
   -u root -p root
  select user, host, password from mysql.user' at line 1
  mysql&gt;
  </code></pre>
  
  <p>How can set the required privileges, from Windows, to the mysql table users?</p>