943,910 Members | Top Members by Rank

Ad:
  • PHP Discussion Thread
  • Unsolved
  • Views: 90981
  • PHP RSS
You are currently viewing page 1 of this multi-page discussion thread
Jun 18th, 2004
0

cannot load MySQL extension, please check PHP Configuration

Expand Post »
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.
Last edited by Killer_Typo; Jun 18th, 2004 at 10:41 pm. Reason: fix title name
Reputation Points: 152
Solved Threads: 39
Master Poster
Killer_Typo is offline Offline
778 posts
since Apr 2004
Jun 19th, 2004
0

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!!
Reputation Points: 152
Solved Threads: 39
Master Poster
Killer_Typo is offline Offline
778 posts
since Apr 2004
Jun 19th, 2004
0

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.
Reputation Points: 10
Solved Threads: 0
Junior Poster in Training
Ragnarok is offline Offline
94 posts
since Mar 2004
Jun 19th, 2004
0

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.
Reputation Points: 152
Solved Threads: 39
Master Poster
Killer_Typo is offline Offline
778 posts
since Apr 2004
Jul 14th, 2004
0

Re: php5 and phpmyadmin??

Killer_Typo, can you please share your findings in more detail 'cause I'm having the same problem. Thanks!
Reputation Points: 10
Solved Threads: 0
Newbie Poster
Xaeryth is offline Offline
3 posts
since Jul 2004
Jul 14th, 2004
0

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.
Reputation Points: 152
Solved Threads: 39
Master Poster
Killer_Typo is offline Offline
778 posts
since Apr 2004
Jul 30th, 2004
0

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!
Reputation Points: 10
Solved Threads: 0
Newbie Poster
QCNic is offline Offline
1 posts
since Jul 2004
Jul 30th, 2004
0

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.

Reputation Points: 10
Solved Threads: 0
Newbie Poster
philipswood is offline Offline
1 posts
since Jul 2004
Aug 3rd, 2004
0

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??
Reputation Points: 10
Solved Threads: 0
Newbie Poster
Xaeryth is offline Offline
3 posts
since Jul 2004
Aug 3rd, 2004
0

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.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
Xaeryth is offline Offline
3 posts
since Jul 2004

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in PHP Forum Timeline: Change Get page content urls?
Next Thread in PHP Forum Timeline: yet another Syntax error, unexpected T_VARIABLE





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC