Host is not allowed to connect to this MySQL server.

Hi Friends,

I have created an user in phpmyadmin in hosting server & when I upload & trying to open that page I am getting this warning.

Warning: mysql_connect() [function.mysql-connect]: Host ‘xxxxxxxxxx.com’ is not allowed to connect to this MySQL server in /home/xxxxxx/xxxxxx/config.php on line 7

It is working in my local system bt nt working in hosting server. If anyone have any idea kindly help me to short out this issue.

Regards,
Premashish

There is a possibility the host doesn’t allow external mysql access.

I have created that that user & database in phpmyadmin what is available in cpanel.
I have added also my server to remote database access host. Even though I am getting this error.

That remote server access is to allow outside computers to access the sql server, not allow it to access your local one. If you want people access your computer, you need to forward the ports on the router and configure apache to whatever port you want it listening too (usually port 80). Otherwise, it doesn’t know what to do.

Sponsor our Newsletter | Privacy Policy | Terms of Service