Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 07-08-2006, 06:40 AM   #1
Registered: Apr 2004
Posts: 340

Rep: Reputation: 30
Host is not allowed to connect to this MySQL server

This is my login page to an in-house web application:

I enter the id and password. There are correct, verified in MySQL.
After I click on the login button, the URL becomes:

Then I get:
Database error: pconnect(, mileage_user_01, $DBPassword) failed.
MySQL Error: 0 ()
Session halted.

So I look at the ssl error log:
cat /var/log/httpd/ssl_error_log

[Sat Jul 08 04:05:07 2006] [error] [client] PHP Warning: mysql_pconnect() [<a href='function.mysql-pconnect'>function.mysql-pconnect</a>]: Host '' is not allowed to connect to this MySQL server in /var/www/html/mileage/01/publish/db_mysql.php on line 99, referer:
Just in case, here is line 99 in /var/www/html/mileage/01/publish/db_mysql.php:
$this->Link_ID=mysql_pconnect($DBHost, $DBUser, $DBPassword);

As indicated in the ssl error log entry:
My desktop ip address is
The server ip address is

So then why does it say
"... Host '' is not allowed to connect to this MySQL server ..."
Apache and MySQL are running on this same server which is a Fedora Core 5 system.
Old 07-08-2006, 08:14 AM   #2
Registered: Oct 2003
Location: Cleveland, Ohio
Distribution: Gentoo
Posts: 53

Rep: Reputation: 15
I'm not very familliar with the mysql config file, but perhaps theres a line in there limiting logins to localhost?


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
not allowed to connect to mysql server on another machine dsids Linux - Newbie 2 05-26-2006 03:36 PM
mysql error Can't connect to local MySQL server through socket '/var/lib/mysql/mysql. Dannux Linux - Software 3 03-24-2006 08:44 AM
ERROR 1130: Host 'testserver' is not allowed to connect to this MySQL server ddaas Linux - Software 1 04-07-2005 12:00 PM
Host XXX.XXX.XXX.XXX is not allowed to connect to this MySQL server ocavid Linux - Newbie 2 03-16-2005 09:40 AM
MySQL - Host not allowed TBomb Linux - Software 4 09-18-2004 05:22 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:52 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration