title: lost mysql root user privelages
body: <p>I using mariadb and my mysql root user lost all of privelages. so everything gives me the "access denied" now.</p>
  
  <p>I tried to reinstall mysql but it's looks like the configure files not deleted.</p>
  
  <p>how can I fix it when I can't access to mysql table and even can't have another fress install.</p>
  
  <p>by the way I using ubuntu 16.04 and according to this question </p>
  
  <p><a href="https://stackoverflow.com/questions/1658246/how-do-i-restore-the-mysql-root-users-privileges">How do I restore the MySQL root user&#39;s privileges?</a></p>
  
  <p>I think I can't do any thing except remove mariadb completely with all configure files.</p>
  
  <p><strong>------------------update------------------</strong></p>
  
  <p>I have no problem with my password, the problem is my root user has no privelages.</p>
  
  <p><em>please <strong>don't</strong> send solutions about changing password</em></p>