Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

I have a RH Server running MySQL

Status
Not open for further replies.

pdafreeeker

IS-IT--Management
Feb 24, 2003
2
US
I have a RH Server running MySQL

I have my windows PC (I know, I know) at home where I write php scripts. I want to be able to test out the php scripts which access the mysql database on the server at work.

Lets say I know the IP address of the server is

68.98.216.100 (Running Mysql)

my home pc connects to the internet via cable modem

I can currently type at home and view all phpscripts however when I use the scripts to log into the database they do not connect to mysql server at work.

someone told me to try adding
-A RH-Lokit-0-50-INPUT -p tcp -m tcp --dport 3306 --syn -j ACCEPT

I tried this and I still cant' connect to MySQL

Here is a partial of the PHP script that connects to the database.
$result = @mysql_pconnect("68.98.216.100", "book_bc", "admin");

Can anyone help me?

THanks
 
Does the server at work face the internet? Alot of webservers people deal with at work are on an intranet and hence cannot be accessed from an outside connection.

Assuming it does, I'm fairly certain you have everything you need... might help to remove the @ before mysql_pconnect and see what the error messages are.

-Rob
 
Thanks for the note.

This is what it tells me after I remove @

Warning: Can't connect to MySQL server on '68.98.216.103' (10061) in C:\Program Files\Apache Group\Apache2\htdocs\chapter25\db_fns.php on line 5
No categories currently available

What is the (10031)

Thanks again
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top