Re : [PHP-WIN] Testing MySQL PHP connection

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

 



Generaly, i have this error ecause i am not using the right version of file libmySQL.dll.

It seems like there is compatibility with this file and the one with came with mysql (bin directory).
My workaround is to find all occurences of this file in the computer, delete (or rename) them all. Then, i copy the version file with came with php (or the one with came with mysql, i dont remember well) in the Window directory.

Let me know if it work for you. I always have this error when i install PHP.



----- Message d'origine ----
De : Bill Bolte <billb@xxxxxxxxxxxxxxxx>
À : php-windows@xxxxxxxxxxxxx
Envoyé le : Lundi, 9 Juillet 2007, 16h08mn 35s
Objet : RE:  Testing MySQL PHP connection

The extension probably needs to be in the "ext" folder inside the php
folder. There is an extension path statement in the ini that points to
where extensions should go. 

-----Original Message-----
From: Jacob Bergman [mailto:jbergman@xxxxxxxxxxxxxxxxx] 
Sent: Monday, July 09, 2007 11:04 AM
To: Stut
Cc: php-windows@xxxxxxxxxxxxx
Subject: RE:  Testing MySQL PHP connection

Yes, I restarted Apache and yes I edited the correct php.ini file, it is
looking in C:\windows for the file and I checked to make sure that the
line was uncommented.  Is there anything else I need to be changing in
the php.ini file??  I made sure the php_mysqli.dll file was in the
c:\php folder, in case that would do anything like this...

Jacob Bergman
Network Technician
Pullman School District #267
(509) 432-4012
jbergman@xxxxxxxxxxxxxxxxx

-----Original Message-----
From: Stut [mailto:stuttle@xxxxxxxxx] 
Sent: Monday, July 09, 2007 8:58 AM
To: Jacob Bergman
Cc: php-windows@xxxxxxxxxxxxx
Subject: Re:  Testing MySQL PHP connection

Jacob Bergman wrote:
> Sorry about that...
> 
> Anyways, I created a phpinfo page and don't see anything about mysql
in
> the output...  

<snip>

Then it's not enabled. Have you restarted your web server since changing

php.ini? Are you sure you changed the right php.ini (look near the top 
of the phpinfo output for where it should go).

-Stut

-- 
http://stut.net/

> -----Original Message-----
> From: Stut [mailto:stuttle@xxxxxxxxx] 
> Sent: Monday, July 09, 2007 8:41 AM
> To: Jacob Bergman
> Cc: php-windows@xxxxxxxxxxxxx
> Subject: Re:  Testing MySQL PHP connection
> 
> Please include the list when replying.
> 
> Jacob Bergman wrote:
>> Yeah, the extension=php_mysqli.dll line is enabled in the php.ini
> file.
>> Doesn't that error indicate something wrong with the php file itself?
> 
> Have you restarted Apache/IIS/whatever since changing it?
> 
> The error indicates that it doesn't have any knowledge of a function 
> called mysqli_connect. That function will be registered when the 
> extension is loaded, so the extension is not being loaded (either 
> correctly or at all).
> 
> If you have then make a phpinfo page (http://php.net/phpinfo) and
check 
> that PHP thinks MySQLi is installed.
> 
> -Stut
> 


-Stut

-- 
http://stut.net/

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

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








      _____________________________________________________________________________ 
Ne gardez plus qu'une seule adresse mail ! Copiez vos mails vers Yahoo! Mail 

[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Database Programming]     [PHP Install]     [Kernel Newbies]     [Yosemite Forum]     [PHP Books]

  Powered by Linux