title: access denied for user debian-sys-maint
body: <p>I have had problem with mysql. I tried to execute this:</p>
  
  <pre><code>echo "show databases" | mysql -B -N
  </code></pre>
  
  <p>But I got:</p>
  
  <pre><code>ERROR 1045 (28000): Access denied for user 'debian-sys-maint'@'localhost' (using password: YES)
  </code></pre>
  
  <p>But when I exec:</p>
  
  <pre><code>/etc/init.d/mysql restart 
  </code></pre>
  
  <p>I got an 'OK'.</p>
  
  <p>I did</p>
  
  <pre><code>GRANT ALL PRIVILEGES on *.* TO debian-sys-maint@localhost IDENTIFIED BY PASSWORD 'your password' WITH GRANT OPTION; FLUSH PRIVILEGES;
  </code></pre>
  
  <p>where password is from <code>/etc/mysql/debian.cnf</code>. But it didn't help. (of course I flushed priv and restarted mysql).</p>