Jump to content

Recommended Posts

This is a strange problem I've never ran into before.  Whenever one of my php scripts attempts to connect to mysql, it stalls and eventually times-out.  It appears that as soon as mysql_connect() is called, it stalls - I've tested this.  Scripts not using this function run fine.

 

I have MySQL installed on a server machine I built - PHP is running on the same machine, and I just reformatted so nothing wrong there.  Firewalls are off, no antivirus.  Installed PHP using defaults except for 1) enabled multi-byte strings and 2) not installing MSSQL (was causing ntwdblib.dll errors).  This entire setup worked perfectly before the format (even MSSQL).  I also know that MySQL is not the problem here.  Perl and the mysql terminal can connect just fine.  Windows x64.

 

Any tips, ideas, etc. appreciated.

 

Thanks

Link to comment
https://forums.phpfreaks.com/topic/186186-php-stalls-when-connecting-to-mysql/
Share on other sites

I also know that MySQL is not the problem here.  Perl and the mysql terminal can connect just fine.

 

Some more info:

When running phpMyAdmin (or any other app that uses a database for that matter) I can setup the database and configure it.  But, when I login it stalls for about a minute, then I get a blank page - nothing in the source of the page either.  Nothing in apache's error log or php's error log.

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.