Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 9 of 9
  1. #1
    New Coder
    Join Date
    Mar 2006
    Posts
    51
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Unhappy Error in php.ini

    Hi..

    I run phpMyAdmin. But it says 'cannot connect to MySQL server please check module in php configuration. Make sure php_mysql module is configured.'
    In fact, I have configure 'extension = php_mysql.dll' in php.ini.

    Where is the error?

    Please help..

  • #2
    New Coder
    Join Date
    Jul 2005
    Posts
    81
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Run phpinfo() and see if mysql is in. If it is there then look for a config.php in phpmyadmin directory there also you could set up some variables
    If you can not find a decision, maybe you have to try to change a problem

    http://www.gunman.co.nr
    http://bglinux.org

  • #3
    New Coder
    Join Date
    Mar 2006
    Posts
    51
    Thanks
    1
    Thanked 0 Times in 0 Posts
    I have run phpinfo() but I can't see information about mysql.
    In fact, I have activate mysql module ini php.ini.

    I attached my php.ini. If you don't mind, please help me to analyse it, maybe there something wrong..

    Thank you..
    Attached Files Attached Files

  • #4
    Senior Coder CFMaBiSmAd's Avatar
    Join Date
    Oct 2006
    Location
    Denver, Colorado USA
    Posts
    3,063
    Thanks
    2
    Thanked 317 Times in 309 Posts
    When you check the output from the phpinfo() statement, make sure that the php.ini that is being used by php is the one you are making changes to -
    Code:
    Configuration File (php.ini) Path
    If you are learning PHP, developing PHP code, or debugging PHP code, do yourself a favor and check your web server log for errors and/or turn on full PHP error reporting in php.ini or in a .htaccess file to get PHP to help you.

  • #5
    New Coder
    Join Date
    Mar 2006
    Posts
    51
    Thanks
    1
    Thanked 0 Times in 0 Posts
    yes, path information ini phpinfo() says "PHP Configuration Path = C:\WINDOWS\php.ini" and it's correct, I put php.ini in WINDOWS.

    So, what's wrong?
    Oh, my GOD I'm dizzy...

  • #6
    Regular Coder
    Join Date
    Nov 2004
    Location
    Edinburgh, SCO
    Posts
    113
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Have you installed apache, mysql and phpmyadmin yourself? If yes, try using XAMPP by Apachefriends. I've been using it for ages now and am really happy with it. Has always worked fine.

  • #7
    New Coder
    Join Date
    Mar 2006
    Posts
    51
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Yes, I've installed all, one by one manually and not using wizard tools like XAMPP, etc. I've got success, but still stuck to connect to MySQL server through PHP.

    I've attached my phpinfo() file and screenshots of the error message.
    I hope somebody could help me..

    Thanks.
    Attached Files Attached Files

  • #8
    New to the CF scene
    Join Date
    Jul 2004
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts
    is the extension directory correct as: "C:\FST\Systems\PHP\ext\"

    if your installing php 5 (not sure if it applies to any other version) have you copied the required libmysql.dll into /windows (or /windows/system32/ cant remember) directory i think its located somewhere in the mysql folder if not try the php folder.

    Hope this helps

  • #9
    New Coder
    Join Date
    Mar 2006
    Posts
    51
    Thanks
    1
    Thanked 0 Times in 0 Posts
    still same. php.ini doesn't load mysql plugin.
    anyway, I decide to use XAMPP. It's more easier for me to works.

    Thank you everyone for helping me..


  •  

    Posting Permissions

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