RE: MYSQL Maximum Time Exceeded

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxx>
To: "'PHPDiscuss - PHP Newsgroups and mailing lists'" <soporte@xxxxxxxxxxxxx>,<php-db@xxxxxxxxxxxxx>
Subject: RE: 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@xxxxxxxxxxxxx]
Sent: Wednesday, December 15, 2004 9:20 AM
To: php-db@xxxxxxxxxxxxx
Subject:  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.

--

-- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux