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 hosting@afrihost.com for assistance

https://help.afrihost.com/topic/domains-and-hosting/mysql-ms-sql-and-access-databases

If you require further assistance,   

please send a message to our WhatsApp helpline: https://whatsapp.afrihost.com  

or visit our Help Centre: https://help.afrihost.com/  

or see our FAQ page: http://faq.afrihost.com

 

answered Aug 17 by Nino (28,490 points)
...