Adminer- Access denied for user 'root'@'localhost' (using password: NO)

11.7k Views Asked by At

I'm getting this error when i try to access my phpmyadmin databases from my site at 000webhost
Access denied for user 'root'@'localhost' (using password: NO) but when i type localhost in URL and enter my login details through adminer's login, i could access phphmyadmin panel, but when tried using the site,i get the error..Any suggestions My site is http://salon.host56.com/salonadmin.php

2

There are 2 best solutions below

0
On

Try sudo mysql_secure_installation to setup password for root user

0
On

Maybe is the file permission? if the server is unix-like try chmod 644 salonadmin.php