In this tutorial im going to solve below error 1045 – Access denied for user ‘root’@’localhost’ (using password: No)
Errror : –
1045 - Access denied for user 'root'@'localhost' (using password: No)
![](https://www.devopsfreelancer.com/blog/wp-content/uploads/2023/10/image-81-1024x576.png)
SOLUTION
/opt/lampp/phpmyadmin
vi config.inc.php
/* Authentication type */
$cfg['Servers'][$i]['auth_type'] = 'cookie';
$cfg['Servers'][$i]['user'] = 'root';
$cfg['Servers'][$i]['password'] = '8789';
/* Server parameters */
//$cfg['Servers'][$i]['host'] = 'localhost';
$cfg['Servers'][$i]['compress'] = false;
$cfg['Servers'][$i]['AllowNoPassword'] = true;
![](https://www.devopsfreelancer.com/blog/wp-content/uploads/2023/10/image-83.png)
Save and exit.
![](https://www.devopsfreelancer.com/blog/wp-content/uploads/2023/10/image-84-1024x513.png)
Now working successfully…..ππ