Results 1 to 5 of 5

Thread: PHP not working with my SQL

  1. #1
    Join Date
    Jan 2009
    Posts
    133

    PHP not working with my SQL

    I have PHP installed on a Windows XP Pro, along with Apache and MySQL 5.0.The server (host) I'm using is localhost, and my php scripts run normally,but whenever i try to connect Mysql i am not able to do so.

    Can anyone help me out with this issue.

  2. #2
    Join Date
    May 2008
    Posts
    2,297

    Re: PHP not working with my SQL

    Sure i will help you out with this issue may i know are you getting an error message whenever you trying to connect it.

  3. #3
    Join Date
    Jan 2009
    Posts
    133

    Re: PHP not working with my SQL

    I am getting the following error message

    Code:
    The PHP configuration on your server doesn't support the database type that you chose
    Please help me out with this issue.

  4. #4
    Join Date
    May 2008
    Posts
    2,297

    Re: PHP not working with my SQL

    For that you need a registry entry in HKLM\Software\PHP called IniFilePath set in your ini file. Put the following into a
    .reg file and run it and it will create the entry required.


    [HKEY_LOCAL_MACHINE\SOFTWARE\PHP]
    "IniFilePath"="C:\\PHP"

  5. #5
    Join Date
    Feb 2008
    Posts
    1,852

    Re: PHP not working with my SQL

    Move your phpinfo.php into your root directory and point your web browser at it (http://localhost/phpinfo.php) and search for mysql.

    If you don't find there it's means PHP is not being configured for MySQL support.

Similar Threads

  1. Replies: 10
    Last Post: 02-05-2012, 10:55 PM
  2. Replies: 8
    Last Post: 20-12-2011, 11:39 AM
  3. Replies: 3
    Last Post: 27-04-2011, 12:11 AM
  4. Replies: 4
    Last Post: 26-07-2009, 12:37 AM
  5. Replies: 1
    Last Post: 03-07-2008, 09:32 PM

Tags for this Thread

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
  •  
Page generated in 1,711,639,619.05177 seconds with 16 queries