Liquid Fire Posted April 23, 2008 Share Posted April 23, 2008 I have installed php and mysql and mysql is working fine as i can connect with cmd but when i tried to connect with a php script, the connection timeouts. anyone knows why this would happen? Link to comment https://forums.phpfreaks.com/topic/102490-php-not-working-with-mysql/ Share on other sites More sharing options...
rajivgonsalves Posted April 23, 2008 Share Posted April 23, 2008 can you provide some code of your script! Link to comment https://forums.phpfreaks.com/topic/102490-php-not-working-with-mysql/#findComment-524790 Share on other sites More sharing options...
Liquid Fire Posted April 23, 2008 Author Share Posted April 23, 2008 here is my entire script: $mysql_connection = mysql_connect('localhost', 'root', '') or die(mysql_error()); Link to comment https://forums.phpfreaks.com/topic/102490-php-not-working-with-mysql/#findComment-524795 Share on other sites More sharing options...
rajivgonsalves Posted April 23, 2008 Share Posted April 23, 2008 mostly a timeout would occur if your mysql dll is not installed properly have you checked your apache logs ? Link to comment https://forums.phpfreaks.com/topic/102490-php-not-working-with-mysql/#findComment-524796 Share on other sites More sharing options...
Liquid Fire Posted April 23, 2008 Author Share Posted April 23, 2008 this looks like it is possible that it could be causing the issue: [Tue Apr 22 23:27:50 2008] [error] [client 127.0.0.1] PHP Fatal error: Maximum execution time of 60 seconds exceeded in C:\\www\\extjs_project\\index.php on line 21, referer: http://localhost/extjs_project/ httpd.exe: Could not reliably determine the server's fully qualified domain name, using 192.168.1.2 for ServerName I am not quite sure how to fix this on vista tho, any suggestions? Link to comment https://forums.phpfreaks.com/topic/102490-php-not-working-with-mysql/#findComment-524805 Share on other sites More sharing options...
Liquid Fire Posted April 23, 2008 Author Share Posted April 23, 2008 can anyone help me with this issue? should the ip be 127.0.0.1 instead of 192.168.1.2 and if so how do i change that(would that be instead the host file)? Link to comment https://forums.phpfreaks.com/topic/102490-php-not-working-with-mysql/#findComment-525226 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.