# New Instalation

**URL:** https://forums.percona.com/t/new-instalation/4829
**Category:** General Questions
**Created:** [April 9, 2016, 7:41am UTC](https://forums.percona.com/t/new-instalation/4829 "2016-04-09T07:41:28Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![furbaez](https://avatars.discourse-cdn.com/v4/letter/f/65b543/32.png) [@furbaez](https://forums.percona.com/u/furbaez)
#### Post date: [April 9, 2016, 7:41am UTC](https://forums.percona.com/t/new-instalation/4829/1 "2016-04-09T07:41:28Z")

</div>

I just installed Perona XtraDB cluster on Centos 7, I am trying to login for the first time to mysql using the following command:  
mysql -u root and I am getting this error ERROR 1045 (28000): Access denied for user ‘root’@‘localhost’ (using password: NO)  
I also tried mysql -u root -p and I am getting ERROR 1045 (28000): Access denied for user ‘root’@‘localhost’ (using password: YES) I do not understand the problem

---

<div class="post-metadata">

### Author: ![Ctrl4](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/ctrl4/32/32_2.png) [@Ctrl4](https://forums.percona.com/u/Ctrl4)
#### Post date: [March 10, 2017, 5:55am UTC](https://forums.percona.com/t/new-instalation/4829/2 "2017-03-10T05:55:32Z")

</div>

Hi! i know this post has month here, but i would like to add my answer just in case someone has the same error.  
If you follow the tutorial that Percona has kindly write for us ([url][Redirecting](https://www.percona.com/doc/percona-xtradb-cluster/LATEST/install/yum.html#yum%5B/url%5D)) you will see in step 5 this line.  
sudo grep ‘temporary password’ /var/log/mysqld.log There is the solution to your problem. And if you keep doing the tutorial you will know how to change that password to the on that you like.

---

<div class="post-metadata">

### Author: ![vaibhav\_upadhyay40](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/vaibhav_upadhyay40/32/9_2.png) [@vaibhav\_upadhyay40](https://forums.percona.com/u/vaibhav_upadhyay40)
#### Post date: [June 12, 2020, 1:58pm UTC](https://forums.percona.com/t/new-instalation/4829/3 "2020-06-12T13:58:08Z")

</div>

Hi @furbaez   
  
_mysql -u root and I am getting this error ERROR 1045 (28000): Access denied for user ‘root’@‘localhost’ (using password: NO)_  
=\> above command&nbsp; ‘-p’ is missing (for password) hence it is directly&nbsp;trying to login without password.  
  
_I also tried mysql -u root -p and I am getting ERROR 1045 (28000): Access denied for user ‘root’@‘localhost’ (using password: YES)&nbsp;_  
=\>&nbsp;Here the password is incorrect.&nbsp;
