SitePoint Sponsor

User Tag List

Results 1 to 19 of 19
  1. #1
    Non-Member c1vineoflife's Avatar
    Join Date
    Sep 2004
    Location
    CA
    Posts
    460
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    unable to load dynamic library 'C:\php\php_mysql.dll'

    I know this has been asked a few times, but I can't find an answer that works.

    I have libmysql.dll copied to:

    C:\php (which I have changed to be m ext dir)
    C:\php\ext
    C:\windows\
    C:\windows\system
    C:\windows\system32

    It still can't load the dll. What confuses me is that it's saying it can't load php_mysql.dll, but people are saying that it's really looking for libmysql.dll.

    Anyway, I just don't know what the heck is wrong with it. I have uncommented this line in php.ini:

    extension=php_mysql.dll

    I've estarted apache like I was supposed to.

    I'm using:

    php 5.0.2
    mysql 5.0.2

    Thanks in advance!

    William

  2. #2
    Non-Member c1vineoflife's Avatar
    Join Date
    Sep 2004
    Location
    CA
    Posts
    460
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    bump

    Anybody?

  3. #3
    Non-Member c1vineoflife's Avatar
    Join Date
    Sep 2004
    Location
    CA
    Posts
    460
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Oh, and im using xp pro

  4. #4
    Sell crazy someplace else markl999's Avatar
    Join Date
    Aug 2003
    Location
    Manchester, UK
    Posts
    4,007
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Just check a few things.
    1. Check you php.ini (c:\windows\php.ini by default) and check the line: extension_dir , make sure it points to where the extensions are c:\php\ext for example (and make sure php_mysql.dll is in that directory).
    2. Make sure you copy libmysql.dll from c:\php to your windows\system32 directory.
    3. Restart apache. If it still fails post the exact error you get and also check apache's error.log for any relevant errors.

  5. #5
    Non-Member c1vineoflife's Avatar
    Join Date
    Sep 2004
    Location
    CA
    Posts
    460
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    that's the thing. Am I supposed to have a file that is called:

    php_mysql.dll

    Because all I have is libmysql.dll

  6. #6
    Sell crazy someplace else markl999's Avatar
    Join Date
    Aug 2003
    Location
    Manchester, UK
    Posts
    4,007
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    php_mysql.dll should be in the php\ext directory (with PHP5).
    That's presuming you downloaded the zip package (which i'd recommend)

  7. #7
    Non-Member c1vineoflife's Avatar
    Join Date
    Sep 2004
    Location
    CA
    Posts
    460
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I thought I downloaded the zip pachage. I'm downloading it right now and Im going to extract that dll. Thanks so much!

  8. #8
    Non-Member c1vineoflife's Avatar
    Join Date
    Sep 2004
    Location
    CA
    Posts
    460
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Well I downloaded the php zip fileand took out the ext dir. I changed the extension dir in php.ini to C:\php\ext. I copied libmysql.dll to c:\windows, c:\php, c:\php\ext, c:\windows\system and c:\windows\system32 and i put php_mysql.dll in c:\php and c:\php\ext. And it's still giving me that same error.

  9. #9
    Sell crazy someplace else markl999's Avatar
    Join Date
    Aug 2003
    Location
    Manchester, UK
    Posts
    4,007
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I wouldn't mix and merge different types of downloadable packages. Just start afresh and use the zip package, don't take anything out of it and put it elsewhere or you'll get version mismatch errors too. If you follow http://php.net/manual/en/install.windows.manual.php then you shouldn't get any problems.

  10. #10
    Non-Member c1vineoflife's Avatar
    Join Date
    Sep 2004
    Location
    CA
    Posts
    460
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    AWESOME! I deleted the old one like you said and installed 5.0.4 and got it working. THANK YOU SO MUCH!

  11. #11
    Sell crazy someplace else markl999's Avatar
    Join Date
    Aug 2003
    Location
    Manchester, UK
    Posts
    4,007
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    No problem, glad you got it working

  12. #12
    Non-Member c1vineoflife's Avatar
    Join Date
    Sep 2004
    Location
    CA
    Posts
    460
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Me too! Now I can finally learn mysql

  13. #13
    Sell crazy someplace else markl999's Avatar
    Join Date
    Aug 2003
    Location
    Manchester, UK
    Posts
    4,007
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Be sure to read http://www.sqlcourse.com/ and http://www.sqlcourse2.com/ , some good stuff there.

  14. #14
    SitePoint Evangelist Daijoubu's Avatar
    Join Date
    Oct 2002
    Location
    Canada QC
    Posts
    454
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You start with MySQL5? o_O
    Speed & scalability in mind...
    If you find my reply helpful, fell free to give me a point

  15. #15
    Non-Member c1vineoflife's Avatar
    Join Date
    Sep 2004
    Location
    CA
    Posts
    460
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Daijoubu
    You start with MySQL5? o_O
    Why not?

  16. #16
    SitePoint Evangelist Daijoubu's Avatar
    Join Date
    Oct 2002
    Location
    Canada QC
    Posts
    454
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You can learn it but don't play on using it anytime soon, many server still have to make the move from 3.x to 4.0, not even 4.1
    If you use new features introduced in 5, good luck finding a host for your script (unless you go dedicated or have one already)
    Speed & scalability in mind...
    If you find my reply helpful, fell free to give me a point

  17. #17
    Non-Member c1vineoflife's Avatar
    Join Date
    Sep 2004
    Location
    CA
    Posts
    460
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Daijoubu
    You can learn it but don't play on using it anytime soon, many server still have to make the move from 3.x to 4.0, not even 4.1
    If you use new features introduced in 5, good luck finding a host for your script (unless you go dedicated or have one already)
    i need to find out if my host has mysql 5. thanks for the tip!

  18. #18
    Twitter - @CarlBeckel busy's Avatar
    Join Date
    May 2004
    Location
    Richmond, VA, USA
    Posts
    819
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I had the same problem, and was about to shoot myself in the face. Thank you markl999!

  19. #19
    Non-Member c1vineoflife's Avatar
    Join Date
    Sep 2004
    Location
    CA
    Posts
    460
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by busy
    I had the same problem, and was about to shoot myself in the face. Thank you markl999!
    ha me too


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •