DaniWeb IT Discussion Community

DaniWeb IT Discussion Community (http://www.daniweb.com/forums/)
-   PHP (http://www.daniweb.com/forums/forum17.html)
-   -   php5 and phpmyadmin?? (http://www.daniweb.com/forums/thread7226.html)

Killer_Typo Jun 18th, 2004 9:27 pm
cannot load MySQL extension, please check PHP Configuration
 
i just finished upgrading my php to php5 because i wanted to see the changes, but now my code doesnt do anything at all. like the one to connect to a database. it just gives me a blank white screen so when i went to check phpmyadmin to see if it was even submitting anything i got this error.'


"cannot load MySQL extension, please check PHP Configuration"

im pretty sure that i have installed PHP right. Does php my admin just not work with it, or is there somthing i need to do with mySQL to get it to work with php5. Thanks in advanced for any help that anyone has to offer.

Killer_Typo Jun 18th, 2004 11:08 pm
Re: php5 and phpmyadmin??
 
To add to that, heres what happend after i followed the directions to the FRIGGIN T!!!!

i even add the line extension=php_mysql.dll the php.ini file. and when i start i get this error (when i start apache that is)

PHP Startup: Unable to load dynamic library 'C:\php\ext\php_mysql.dll' - The specified procedure could not be found

even though if you navigate there on my harddrive its there?? ugh!!

Ragnarok Jun 19th, 2004 8:35 am
Re: php5 and phpmyadmin??
 
You do know that PHP5 doesn't have MySQL installed like PHP4 right?

PHP5 has SQLite because of licesne differences or something, however you can install it.

Killer_Typo Jun 19th, 2004 1:17 pm
Re: php5 and phpmyadmin??
 
well i was able to get most of it figured out. I had to rebuild the structure of the files in PHP5 then i had to move a few files around and add a few lines to the php.ini file to get php_mysql.dll to work again.

Xaeryth Jul 14th, 2004 10:52 am
Re: php5 and phpmyadmin??
 
Killer_Typo, can you please share your findings in more detail 'cause I'm having the same problem. Thanks!

Killer_Typo Jul 14th, 2004 1:04 pm
Re: php5 and phpmyadmin??
 
i honestly dont remember what i did now. but since php5 is now out of alpha and up for release it should be good to install now.

QCNic Jul 30th, 2004 10:01 am
Re: php5 and phpmyadmin??
 
Here's how i solve the prob :

php.ini
extension_dir = "c:\php"

copy php_mysql.dll from c:\php\ext to c:\php
copy libmysql.dll and php_mysql.dll from c:\php to %Systemroot%\system and %Systemroot%\system32

Restart Apache2

Few of thoses steps are facultative but that's what i did.

Enjoy!

philipswood Jul 30th, 2004 1:07 pm
Re: php5 and phpmyadmin??
 
Hi,
Had same problem.

Same as above:
copy libmysql.dll
to windows system root system/ and system32/

I left my extention module path to be
php root ext/

though

That should mess with the activation of other modules then.

:)

Xaeryth Aug 3rd, 2004 9:16 am
Re: php5 and phpmyadmin??
 
Quote:

Originally Posted by QCNic
Here's how i solve the prob :

php.ini
extension_dir = "c:\php"

copy php_mysql.dll from c:\php\ext to c:\php
copy libmysql.dll and php_mysql.dll from c:\php to %Systemroot%\system and %Systemroot%\system32

Restart Apache2

Few of thoses steps are facultative but that's what i did.

Enjoy!


Thanks for the replies. I'm really not sure why this 'still' isn't working. I have the dll files in the php\ext, php\, system\, AND system32\ folders. I have an environmental path to c:\php. It doesn't matter if I change the extension_dir to c:\php or leave it c:\php\ext. This is all I get with the latest version of phpMyAdmin.

Quote:

cannot load mysql extension,
please check PHP Configuration
Documentation

I'd also like to mention that this was working 100% with php4. Any other suggestions 'cause, frankly, I'm a bit stumped on this??

Xaeryth Aug 3rd, 2004 9:23 am
Re: php5 and phpmyadmin??
 
I'm an idiot. PHP5 does not have MySQL enabled by default so the ;extension=php_mysql.dll in the php.ini file needs to be uncommented. Duh! :o

Thanks, everyone, for the assistance.


All times are GMT -4. The time now is 5:18 pm.

Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC