Results 1 to 10 of 10

Thread: [RESOLVED] PHP and MySQL are being anti-social.

Threaded View

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Sep 2005
    Posts
    540

    Resolved [RESOLVED] PHP and MySQL are being anti-social.

    Quote Originally Posted by Slyke View Post
    I have installed Apache, MySQL services on a windows box I have at home, and configured Apache and PHP to talk to each other.

    Basically I can run PHP scripts, and I can also enter commands into the SQL console.

    The part I'm having problems with is getting PHP to talk to the MySQL server.

    I've edited the php.ini file to:
    PHP Code:
    extension_dir "B:/WAMP/apps/php/php_5.2.9-2/ext/" 
    PHP Code:
    extension=php_mysql.dll
    extension
    =php_mysqli.dll 
    When I run phpinfo() it doesn't look like MySQL is being loaded. PHPMyAdmin also errors when I try to run it:


    Documntation says:


    I'm not sure what else I can do to get it working. Any suggestions?
    Edit:
    For some reason the phpinfo() is saying:
    PHP Code:
    Directive    Local Value    Master Value
    extension_dir    C
    :/php5    C:/php5 
    That directory doesn't exist, never has . Why it's not going to the one I set it to I have no idea.

    Edit2:
    Upon further investigation, I've found that PHP is erroring:
    [01-Nov-2009 01:34:07] PHP Warning: PHP Startup: Unable to load dynamic library 'B:/WAMP/apps/php/php_5.2.9-2/ext/php_pdo_mysql.dll' - The specified module could not be found.

    in Unknown on line 0

    [01-Nov-2009 01:34:07] PHP Warning: PHP Startup: Unable to load dynamic library 'B:/WAMP/apps/php/php_5.2.9-2/ext/php_pdo_mysql.dll' - The specified module could not be found.

    in Unknown on line 0

    I can confirm that this file does exist in this place. Some other modules are loading, but others are coming up with the same error. For example, the curl extension works fine.

    Edit3:
    I can rename 'php_curl.dll' to say 'bob.dll' and PHP will load it correctly. If I rename the 'php_pdo_mysql.dll' file to 'bob.dll', it says it can't find the file.

    I'm really confused as to what's happening here. I know the DLLs are fine as I've tried them in another WAMP server... I'm thinking there's some config I haven't set yet... any help ?
    Last edited by Slyke; Oct 31st, 2009 at 10:42 AM.

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