LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices

Reply
 
LinkBack Search this Thread
Old 07-08-2006, 06:40 AM   #1
lothario
Member
 
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:
https://192.168.15.103/mileage/01/publish

I enter the id and password. There are correct, verified in MySQL.
After I click on the login button, the URL becomes:
https://192.168.15.103/mileage/01/pu...?ccsForm=Login

Then I get:
Database error: pconnect(192.168.15.103:3306, 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

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

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


So then why does it say
Quote:
"... Host '192.168.15.103' is not allowed to connect to this MySQL server ..."
Apache and MySQL are running on this same server 192.168.15.103 which is a Fedora Core 5 system.
 
Old 07-08-2006, 08:14 AM   #2
link1305
Member
 
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?
 
  


Reply


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
Trackbacks are Off
Pingbacks are On
Refbacks are 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


All times are GMT -5. The time now is 11:08 AM.

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