Jump to content

Recommended Posts

Greetings,

I am having an issue with what appears to be PHP 5.04 specifically.

I can connect through mysql command line to a remote host on port 7306 without any problems. I can also connect from the server it's on by executing a local php script on this port. I can also take the exact script and connect from a FC2 with PHP 4.3 machine remotely, however when I try to connect from a FC4 machine with php-5.04 I get the following error....

Warning: mysql_connect() [function.mysql-connect]: Can't connect to MySQL server on 'IP OMITTED' (13) in /var/www/html/junk/mysql_connect.php on line 3

I cannot find a reference to erro 13.

As I stated, the script works fine from a FC2 machine running 4.3

You guys are my last resort, please help!

Rab
Link to comment
https://forums.phpfreaks.com/topic/12896-error-with-non-standard-ports/
Share on other sites

[!--quoteo(post=387900:date=Jun 25 2006, 09:55 PM:name=thorpe)--][div class=\'quotetop\']QUOTE(thorpe @ Jun 25 2006, 09:55 PM) [snapback]387900[/snapback][/div][div class=\'quotemain\'][!--quotec--]
Code?
[/quote]

[code]
$link = mysql_connect('IP OMOTTIED:7306', 'mail', '1q2w3e4r');
if (!$link) {
   die('Could not connect: ' . mysql_error());
}
[/code]
This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.