Powered by Hostinger cloud
image description

Web hosting FAQ & Knowledge base

Knowledge Base Articles

I get access denied errors when trying to connect to MySQL

If you cannot connect to MySQL server, there could be some causes:

- Incorrect MySQL hostname.
Never use 'localhost' as your MySQL hostname! You can find your MySQL hostname by logging on to members area, entering control panel and clicking on MySQL icon.

- Incorrect MySQL username / password or database name.
You can find / setup MySQL username and database by clicking on MySQL icon from control panel. And you can change MySQL password by clicking on phpMyAdmin icon.

- Database failed to setup.
In a very rare cases MySQL database can fail to setup. To confirm this, please try to enter phpMyAdmin for any database. If you see database there, that means it setup was successful. And if you get access denied error by trying to enter phpMyAdmin, please delete the database and setup the same MySQL database again.

Please note that always you must give about 1 minute for any changes to apply on server.

If you still unable to connect to MySQL you check if it is server or your script problem in this way: if you can enter phpMyAdmin and see you database there, that means everything is working fine on our side. It's a problem with your PHP script.

Upgrade for a Premium Hosting to get Unlimited MYSQL database. We also promising you 24/7 LIVE support, all your questions will be answered in less than 1 hour. Find out more at www.hosting24.com

Go back
Please share & Like this page! This will motivate us to develop more & better free features!

Hosted websites for 15,457,525 users all over the world!

  • php
  • my sql
  • intel
  • cloudlinux
  • nginx
  • cloudflare
  • wordpress