title: Magento 2 - SQLSTATE[HY000] [1698] Access denied for user 'root'@'localhost'
body: <p>I have a problem installing Magento2 and i think it's all because of mariaDB, when i access to mysql at the terminal, i must execute it like superuser:</p>
  
  <pre><code>sudo mysql -u root -p
  </code></pre>
  
  <p>and i think magento2 when tried to access to the database to install it, it can't. In the step "add a database i fill the data fields and this message appear:</p>
  
  <pre><code>SQLSTATE[HY000] [1698] Access denied for user 'root'@'localhost'
  </code></pre>
  
  <p>i tried to change privileges in mariaDB... and i do something bad because, when i execute:</p>
  
  <pre><code>$ service mysql restart
  
  Failed to add /run/systemd/ask-password to directory watch: No space left on device
  </code></pre>
  
  <p>but i'm open to other options.</p>