Error: Access denied for user ''@'localhost' (using password: NO)

0 votes
Hi, I am trying to create a PHP file to query my database and I get this error.


I am not sure if this could be the problem but I have created a SQL database in the cPanel along with a user that has all priviledges. However, in the phpMyAdmin when I click on the Databases tab and 'Check Privileges' then none are listed.


I am not sure what the error means but I have checked the connection details. I use "localhost" for server name.

Thank you!
asked Aug 7 in Shared Hosting by kiaragx (120 points)

1 Answer

0 votes

Good day, 

I trust you are well, 

Kindly refer to the below link on how to create a Database.

You can email for assistance

If you require further assistance,   

please send a message to our WhatsApp helpline:  

or visit our Help Centre:  

or see our FAQ page:


answered Aug 17 by Nino (28,490 points)