Results 1 to 12 of 12

Thread: MySQL Extension cannot be loaded

  1. #1

    Thread Starter
    Hyperactive Member dandono's Avatar
    Join Date
    Aug 2004
    Location
    Cornwall, UK
    Posts
    485

    MySQL Extension cannot be loaded

    hi, i am trying out mysql (again!!!). i need some help because when i enable the mysql extension i get an error every time anyone goes to a php doc on my server. the error is:
    PHP Startup: Unable to load dynamic library './php_mysql.dll' - The specified module could not be found.
    I dont know how to fix it. can any one help?
    thanks, dandono.
    If there is only one perfect person in the universe, does that make them imperfect?

  2. #2
    VBA Nutter visualAd's Avatar
    Join Date
    Apr 2002
    Location
    Ickenham, UK
    Posts
    4,906

    Re: MySQL Extension cannot be loaded

    Do you have php_mysql.dll in your PHP installation directory? If so, move it to the directory specified as the extension_dir in the php.ini file. If you do not you need to download the ZIP version of PHP 5 from the site. The standard installer does not ship with the php installer.

    Also, ensure you have libmysql.dll copied into your windows directory or have the directory it is contained in appended to the windows PATH envrionment variable.
    PHP || MySql || Apache || Get Firefox || OpenOffice.org || Click || Slap ILMV || 1337 c0d || GotoMyPc For FREE! Part 1, Part 2

    | PHP Session --> Database Handler * Custom Error Handler * Installing PHP * HTML Form Handler * PHP 5 OOP * Using XML * Ajax * Xslt | VB6 Winsock - HTTP POST / GET * Winsock - HTTP File Upload

    Latest quote: crptcblade - VB6 executables can't be decompiled, only disassembled. And the disassembled code is even less useful than I am.

    Random VisualAd: Blog - Latest Post: When the Internet becomes Electricity!!


    Spread happiness and joy. Rate good posts.

  3. #3

    Thread Starter
    Hyperactive Member dandono's Avatar
    Join Date
    Aug 2004
    Location
    Cornwall, UK
    Posts
    485

    Re: MySQL Extension cannot be loaded

    i have done both but i still get the error. i changed the extension dir to "C:\PHP\ext" and put the php_mysql.dll file in to that dir. i dont know if i have done anything wrong
    If there is only one perfect person in the universe, does that make them imperfect?

  4. #4
    VBA Nutter visualAd's Avatar
    Join Date
    Apr 2002
    Location
    Ickenham, UK
    Posts
    4,906

    Re: MySQL Extension cannot be loaded

    Where is libmysql.dll stored?
    PHP || MySql || Apache || Get Firefox || OpenOffice.org || Click || Slap ILMV || 1337 c0d || GotoMyPc For FREE! Part 1, Part 2

    | PHP Session --> Database Handler * Custom Error Handler * Installing PHP * HTML Form Handler * PHP 5 OOP * Using XML * Ajax * Xslt | VB6 Winsock - HTTP POST / GET * Winsock - HTTP File Upload

    Latest quote: crptcblade - VB6 executables can't be decompiled, only disassembled. And the disassembled code is even less useful than I am.

    Random VisualAd: Blog - Latest Post: When the Internet becomes Electricity!!


    Spread happiness and joy. Rate good posts.

  5. #5

    Thread Starter
    Hyperactive Member dandono's Avatar
    Join Date
    Aug 2004
    Location
    Cornwall, UK
    Posts
    485

    Re: MySQL Extension cannot be loaded

    libmysql.dll is in C:\Windows\
    If there is only one perfect person in the universe, does that make them imperfect?

  6. #6
    VBA Nutter visualAd's Avatar
    Join Date
    Apr 2002
    Location
    Ickenham, UK
    Posts
    4,906

    Re: MySQL Extension cannot be loaded

    Have you installed PHP as a module? If so you will need to restart the web server before changes take effect.
    PHP || MySql || Apache || Get Firefox || OpenOffice.org || Click || Slap ILMV || 1337 c0d || GotoMyPc For FREE! Part 1, Part 2

    | PHP Session --> Database Handler * Custom Error Handler * Installing PHP * HTML Form Handler * PHP 5 OOP * Using XML * Ajax * Xslt | VB6 Winsock - HTTP POST / GET * Winsock - HTTP File Upload

    Latest quote: crptcblade - VB6 executables can't be decompiled, only disassembled. And the disassembled code is even less useful than I am.

    Random VisualAd: Blog - Latest Post: When the Internet becomes Electricity!!


    Spread happiness and joy. Rate good posts.

  7. #7
    VBA Nutter visualAd's Avatar
    Join Date
    Apr 2002
    Location
    Ickenham, UK
    Posts
    4,906

    Re: MySQL Extension cannot be loaded

    BTW, your error page should now say:
    Code:
    PHP Startup: Unable to load dynamic library './ext/php_mysql.dll' - The specified module could not be found.
    If it does not, it means PHP has either not found the PHP.ini file or it is using a different one. To confirm this you might want to create file with a call to phpinfo(), this will tell you exactly which configuration file is being use.
    PHP || MySql || Apache || Get Firefox || OpenOffice.org || Click || Slap ILMV || 1337 c0d || GotoMyPc For FREE! Part 1, Part 2

    | PHP Session --> Database Handler * Custom Error Handler * Installing PHP * HTML Form Handler * PHP 5 OOP * Using XML * Ajax * Xslt | VB6 Winsock - HTTP POST / GET * Winsock - HTTP File Upload

    Latest quote: crptcblade - VB6 executables can't be decompiled, only disassembled. And the disassembled code is even less useful than I am.

    Random VisualAd: Blog - Latest Post: When the Internet becomes Electricity!!


    Spread happiness and joy. Rate good posts.

  8. #8

    Thread Starter
    Hyperactive Member dandono's Avatar
    Join Date
    Aug 2004
    Location
    Cornwall, UK
    Posts
    485

    Re: MySQL Extension cannot be loaded

    do you meen restart the server as in restart the iis server or restart as in reboot?
    If there is only one perfect person in the universe, does that make them imperfect?

  9. #9
    VBA Nutter visualAd's Avatar
    Join Date
    Apr 2002
    Location
    Ickenham, UK
    Posts
    4,906

    Re: MySQL Extension cannot be loaded

    Restart IIS.
    PHP || MySql || Apache || Get Firefox || OpenOffice.org || Click || Slap ILMV || 1337 c0d || GotoMyPc For FREE! Part 1, Part 2

    | PHP Session --> Database Handler * Custom Error Handler * Installing PHP * HTML Form Handler * PHP 5 OOP * Using XML * Ajax * Xslt | VB6 Winsock - HTTP POST / GET * Winsock - HTTP File Upload

    Latest quote: crptcblade - VB6 executables can't be decompiled, only disassembled. And the disassembled code is even less useful than I am.

    Random VisualAd: Blog - Latest Post: When the Internet becomes Electricity!!


    Spread happiness and joy. Rate good posts.

  10. #10

    Thread Starter
    Hyperactive Member dandono's Avatar
    Join Date
    Aug 2004
    Location
    Cornwall, UK
    Posts
    485

    Re: MySQL Extension cannot be loaded

    ok, once again my server has messed up. it is not that big of a problem but it still needs it to be reinstalled but some how i got my self into reformatting all the partitions on it and getting it ready for a new hard drive that i will ghost it onto. i will try MySQL as soon as i get it running again im upgrading from an 80 gb hdd to a 300gb hdd and then in a few months im buying a few more 300gb's i just had to brag
    If there is only one perfect person in the universe, does that make them imperfect?

  11. #11

    Thread Starter
    Hyperactive Member dandono's Avatar
    Join Date
    Aug 2004
    Location
    Cornwall, UK
    Posts
    485

    Re: MySQL Extension cannot be loaded

    ok i fixed it. so all i got to do is download php_mysql.dll from zip file on php.net, copy it to C:\php\ext\ and copy libmysql.dll to C:\windows\
    If there is only one perfect person in the universe, does that make them imperfect?

  12. #12

    Thread Starter
    Hyperactive Member dandono's Avatar
    Join Date
    Aug 2004
    Location
    Cornwall, UK
    Posts
    485

    Re: MySQL Extension cannot be loaded

    yay!!! i have finaly got MySQL working thanks visualad
    i would give you some rep but it says i need to spread it around; lol
    If there is only one perfect person in the universe, does that make them imperfect?

Posting Permissions

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



Click Here to Expand Forum to Full Width