Jump to content

PHP stalls when connecting to MySQL


maikeru72

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.

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.