Host is not allowed to connect to this MySQL server.

Codes here !

Moderators: macek, egami, gesf

premecorp
New php-forum User
New php-forum User
Posts: 18
Joined: Fri Nov 04, 2011 5:57 am

Host is not allowed to connect to this MySQL server.

Postby premecorp » Mon Jun 18, 2012 3:50 am

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

johnj
php-forum Super User
php-forum Super User
Posts: 1805
Joined: Thu Mar 10, 2011 5:07 pm

Re: Host is not allowed to connect to this MySQL server.

Postby johnj » Wed Jun 20, 2012 8:39 pm

check the config file.
Make sure the user name , password and hostname - all these three are correct.

premecorp
New php-forum User
New php-forum User
Posts: 18
Joined: Fri Nov 04, 2011 5:57 am

Re: Host is not allowed to connect to this MySQL server.

Postby premecorp » Wed Jun 20, 2012 11:40 pm

Yes, all are correct.

johnj
php-forum Super User
php-forum Super User
Posts: 1805
Joined: Thu Mar 10, 2011 5:07 pm

Re: Host is not allowed to connect to this MySQL server.

Postby johnj » Thu Jun 21, 2012 5:49 am

1).what is line 7 in your config file.


Return to “mySQL & php coding”

Who is online

Users browsing this forum: No registered users and 2 guests

cron