MySQL Forums
Forum List  »  PHP

unknown mysql server host 127.0.0.1:90 error ... how to connect when not on port 80
Posted by: shembrut
Date: January 10, 2006 11:20AM

I have IIS and Apache installed on the same box. IIS is listening to port 80 and I have apache configured to listen to port 90.

When I try to connect to the MySQL database using mysqli_connect I keep getting the error 'Unknown MySQL server host 127.0.0.1:90.

This is what my connection string looks like:

mysqli_connect ("127.0.0.1:90", "root", "pass", "prodDB", "3306")

I also changed my php.ini to set the mysqli.default_host = 127.0.0.1:90

Any ideas?
- shembrut

Options: ReplyQuote


Subject
Written By
Posted
unknown mysql server host 127.0.0.1:90 error ... how to connect when not on port 80
January 10, 2006 11:20AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.