jose.natali Posted March 22, 2007 Share Posted March 22, 2007 Can somebody help? Here is the info: Two computer, Fedore core 6 OS, php 5, apache 2, MySQL 5 Every computer 2 NICs, first NIC 10/100 (192.168 network), second NIC 10/100/1000 (10.0 network) Computers are behind of PfSense firewall only in the 192.168 network. (extra info, just in case) computer one = node01 (Web Server), computer two = node02 (MySQL Server) node02 - acount create in MySQL Server for node01 node01 - can access MySQL Server using terminal->mysql client, no problems! When I try to do connection to node02 using PHP I get the message in the logs, that the connection can not be establish to 10.0.0.x. I especified in the code the ip address for the host, the user, and the password for MySQL server. What can be the problem? if somebody have an idea, please help me. Quote Link to comment Share on other sites More sharing options...
fenway Posted March 22, 2007 Share Posted March 22, 2007 Are you sure the grants are set up correctly, and that non-localhost connections are allowed? Quote Link to comment Share on other sites More sharing options...
jose.natali Posted March 22, 2007 Author Share Posted March 22, 2007 Thanks for a fast response. Yes, I'm sure. As I said, I'm able to connect from node01 to node02 using mysql client. i.e.: mysql -h 10.0.0.1 -u username -p or mysql --host=10.0.0.1 --user=username --password=password connection is established and I have full access in this way, but not using my webserver with php. any ideas??? May be relate somehow, that I'm using a NIC#1 for access the webserver and NIC#2 for PHP to access the database? ??? Quote Link to comment Share on other sites More sharing options...
fenway Posted March 23, 2007 Share Posted March 23, 2007 That's a PHP issue, then... I have no idea. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.