maikeru72 Posted December 23, 2009 Share Posted December 23, 2009 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 Quote Link to comment https://forums.phpfreaks.com/topic/186186-php-stalls-when-connecting-to-mysql/ Share on other sites More sharing options...
fenway Posted December 27, 2009 Share Posted December 27, 2009 Confirm that command-line interaction with mysql is ok. Quote Link to comment https://forums.phpfreaks.com/topic/186186-php-stalls-when-connecting-to-mysql/#findComment-984572 Share on other sites More sharing options...
maikeru72 Posted December 28, 2009 Author Share Posted December 28, 2009 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. Quote Link to comment https://forums.phpfreaks.com/topic/186186-php-stalls-when-connecting-to-mysql/#findComment-985013 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.