title: Access denied for user 'root@localhost' (using password: YES)
body: <p>When install <strong>MySQL</strong> in <strong>Cent OS</strong>, it is installed correctly.</p>
  
  <p>After installation,I type this command in terminal.</p>
  
  <pre><code>/etc/init.d/mysqld start
  </code></pre>
  
  <p>It shown error and I typed password as <strong>'new-password'</strong>. In this time, I found this error.</p>
  
  <pre><code>[root@datsvr018 bin]# /etc/init.d/mysqld start
  Starting mysqld:                                           [  OK  ]
  
  [root@datsvr018 bin]# mysql_secure_installation
  
  NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MySQL
        SERVERS IN PRODUCTION USE!  PLEASE READ EACH STEP CAREFULLY!
  
  In order to log into MySQL to secure it, we'll need the current password
  for the root user.  If you've just installed MySQL, and you haven't set
  the root password yet, the password will be blank, so you should just press enter here.
  
  Enter current password for root (enter for none): 
  ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
  </code></pre>