How i connect php to mysql

Discussion in 'PHP' started by ehsen, Apr 5, 2006.

  1. #1
    I have Mysql 4.0x and Php 5.0x installed on my computer. Whenever i try to install program like phpbb on my machine it gives error

    Your php configuration doesn't support the database you have choosen


    Phpmyadmin also gives the same kind of error

    cannot load mysql extension;please check PHP configuration

    How i solve this problem.
     
    ehsen, Apr 5, 2006 IP
  2. digitalpoint

    digitalpoint Overlord of no one Staff

    Messages:
    38,334
    Likes Received:
    2,613
    Best Answers:
    462
    Trophy Points:
    710
    Digital Goods:
    29
    #2
    You would need to recompile PHP to include MySQL functions (or install a version of PHP that has it already compiled in).
     
    digitalpoint, Apr 5, 2006 IP
  3. jestep

    jestep Prominent Member

    Messages:
    3,659
    Likes Received:
    215
    Best Answers:
    19
    Trophy Points:
    330
    #3
    If you're using windows and apache it is completely different that recompiling php.

    What operating system are you running php with?
     
    jestep, Apr 5, 2006 IP
  4. hansi

    hansi Peon

    Messages:
    129
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #4
    If you use Windows try to copy the "libMySQL.dll" from mysql/bin/ to windows/system32/
     
    hansi, Apr 6, 2006 IP
  5. l234244

    l234244 Peon

    Messages:
    1,225
    Likes Received:
    50
    Best Answers:
    0
    Trophy Points:
    0
    #5
    l234244, Apr 6, 2006 IP
  6. Emperor

    Emperor Guest

    Messages:
    4,821
    Likes Received:
    180
    Best Answers:
    0
    Trophy Points:
    0
    #6
    That’s what I use, trust me go with his advice. If you want one with perl try this one
     
    Emperor, Apr 6, 2006 IP
  7. asgsoft

    asgsoft Well-Known Member

    Messages:
    1,737
    Likes Received:
    34
    Best Answers:
    0
    Trophy Points:
    160
    #7
    wamp is great for everything. I have been using it for 1.5 years now and I have no problems with it.
     
    asgsoft, Apr 7, 2006 IP
  8. webbist

    webbist Peon

    Messages:
    89
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #8
    Windows is alot easier to configure PHP and MySQL. Under Linux, you would have to recompile PHP with the MySQL libraries and such (can be a pain).
     
    webbist, Apr 9, 2006 IP
  9. ehsen

    ehsen Peon

    Messages:
    253
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #9
    I am trying to use Uniserver another wamp. However its freaking me out cuz no proper documentaion is accompanied with it.
     
    ehsen, Apr 10, 2006 IP