RE: [PHP-DB] MYSQL Maximum Time Exceeded

From: Date: Thu, 16 Dec 2004 02:17:16 +0000
Subject: RE: [PHP-DB] MYSQL Maximum Time Exceeded
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-37698@lists.php.net to get a copy of this message
no, mysql will work fine with iis, use it at work and use it at home that way, though have recently switched to apache.... what web server are you running? try $conexion = mysql_connect( "localhost", "root", "" ) or die ("can't connect".mysql_error); to give more info about the connection
From: "Jason Walker" <desktophero@cox.net> To: "'PHPDiscuss - PHP Newsgroups and mailing lists'" <soporte@dercoperu.net>,<php-db@lists.php.net> Subject: RE: [PHP-DB] MYSQL Maximum Time Exceeded Date: Wed, 15 Dec 2004 19:06:01 -0700 This not be what you need, but I think there are some squiggle brackets missing. $conexion = mysql_connect("servername","username","password"); <?php If (!$conexion){ Echo "Error connecting."; } ?> Again, I don't think this is the root of the problem but it's the first thing that popped out to me without knowing much more about your system. Have you been able to connect to your mySQL instance with PHP before? With no root password? BTW - I have installed PHP and mySQL on WinXP in the past and it worked fine. One caveat is that I recall using Apache not IIS. -----Original Message----- From: PHPDiscuss - PHP Newsgroups and mailing lists [mailto:soporte@dercoperu.net] Sent: Wednesday, December 15, 2004 9:20 AM To: php-db@lists.php.net Subject: [PHP-DB] MYSQL Maximum Time Exceeded Hi. I am running MySQL 4.0 and PHP 4.3.9 (MySQL Client Version 3.9.23) in Windows XP. I get this error when I try to connect to mysql: Fatal error: Maximum execution time of 60 seconds exceeded in c:\inetpub\wwwroot\index.php on line 4 My PHP script is: <html> <body> <?php $conexion = mysql_connect( "localhost", "root", "" );
        if (!$conexion )
          echo "Error Connecting."
?> </body> </html> I also tried installing newer PHP versios and newer MySQL but it's the same. Can anybody help me, please ? Is WinXP incomaptible with MySQL or what ? Thanks in advance. --


« previous php.db (#37698) next »