Host is not allowed to connect to this MySQL server.

Codes here !

Moderators: egami, macek, gesf

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

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: 1803
Joined: Thu Mar 10, 2011 5:07 pm

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: 16
Joined: Fri Nov 04, 2011 5:57 am

Wed Jun 20, 2012 11:40 pm

Yes, all are correct.

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

Thu Jun 21, 2012 5:49 am

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

Post Reply
  • Information
  • Who is online

    Users browsing this forum: No registered users and 3 guests