I have all three installed and they run separate of eachother. Apache and php are working great, I just can’t get MySql to come to the party.

2 Responses to “How do I configure MySql to work with the Apache 2 server and php on my computer?”

  • Christopher S:

    You will have to recompile php using the –with-mysql flag.

    Check the php documentation for more details.

  • jdorndog:

    First of all, create a test PHP page that has the following code:
    < ?php
    phpinfo();
    ?>

    Open this and see if mysql is listed somewhere.

    If it is, then php and mysql are working. You just need to connect to the database.

    If it isn’t, then you need to edit the php.ini file. Go the the bottom of the file and add the line
    extension=php_mysql.dll
    Then restart apache.

    If that doesn’t work, I would install PHP again from scratch following the tutorial on http://www.php-mysql-tutorial.com/

Leave a Reply