Re: php5/MySQL 4.1.1 connection error
| From: | kengaun | Date: | Thu, 05 Feb 2004 06:31:28 +0000 |
| Subject: | Re: php5/MySQL 4.1.1 connection error | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-32799@lists.php.net to get a copy of this message | ||
Hi ALL,
MySql support is not bundled with PHP 5.0.0
I have managed to connect to MySQL after I have copied the new dll
libmySQL.dll(in php/dlls) folder to c:\windows\system32
And modified the php.ini as per below.
In php.ini
; Directory in which the loadable extensions (modules) reside.
extension_dir = c:\php\extensions
;;;;;;;;;;;;;;;;;;;;;;
; Dynamic Extensions ;
;;;;;;;;;;;;;;;;;;;;;;
extension=php_mysql.dll
"Kengaun" <kengaun@epax02.fairchildsemi.com> wrote in message
news:20040204071122.22283.qmail@pb1.pair.com...
> Hi,
>
> I am testing to use php5.0.0b3 and connect to MySQL 4.1.1 encountered
> connection problem:-
>
> <?php
> $link = mysqli_connect("localhost", "purct",
> "prcyct","purct")
> or die("Could not connect: " . mysql_error());
> echo "Connected successfully";
> mysql_close($link);
> ?>
>
>
> Error message:
> ---------------
> [04-Feb-2004 14:45:07] PHP Fatal error: Call to undefined function
> mysql_connect() in D:\Purct\New1x.php on line 1
>
> Please help to advise what went wrong ?