#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2000
    Location
    Hong Kong
    Posts
    47
    Rep Power
    14
    Dear all,

    How can I compile PHP3 with MySQL using rpm? Coz MySQL and PHP3 are working fine.. But PHP3 cannot connect to mysql and said "mysql_connect is not a function".

    So, I think I should re-complile PHP3 with MySQL. Thx a lot~~!! ^_^

    Jester
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2000
    Location
    Boston, MA
    Posts
    54
    Rep Power
    15
    hello...
    (assuming you are using UNIX/Linux)
    i had the same exact problem and it turn out that i was missing "mysql.so" which is the Dynamic library / module used by php3 to connect to MySQL just like "mysql.dll" in Windows systems...

    check in your "php.ini" file and make sure this ("mysql.so") is NOT commented out and also verify the path ("mod_dir = path") is correct, usually the PHPx.x.x.i386.rpm file uses the Apache modules directory...
    more RPMs can be found at

    www.rpmfind.net

    good luck!
    Rodrigo (php newbie)

    [This message has been edited by eduany (edited May 23, 2000).]
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2000
    Location
    Hong Kong
    Posts
    47
    Rep Power
    14
    Where can I find mysql.so? Coz I cannot find it...
    I have installed mysql through rpm but I cannot see the mysql.so present!

    Please help again~~!!

    Jester
  6. #4
  7. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2000
    Location
    Calcutta, West Bengal, India
    Posts
    25
    Rep Power
    0
    The RPM doesnt have the support for MySQL and PHP binding built in. It gives the same problem on Linux as u are facing.

    I have downloded the source binaries for PHP and apache again from the respective sites and then re-built and compiled apache with MYSQL support and PHP3 support. After that PHP connect perfectly to mysql database.

    just follow the compilation help - readme file. It is nothing frightening in case u are doing first time

    allbest

Similar Threads

  1. Check MySQL Version thru PHP
    By wolftrap1 in forum PHP Development
    Replies: 2
    Last Post: February 11th, 2004, 08:51 PM
  2. Replies: 0
    Last Post: February 10th, 2004, 11:44 PM
  3. Replies: 0
    Last Post: January 30th, 2004, 01:22 PM
  4. PHP 5 (MYSQL vs. SQLite)
    By ignition in forum PHP Development
    Replies: 1
    Last Post: January 23rd, 2004, 12:13 PM
  5. PHP Reconfig with mysql...
    By Legendary Fox in forum PHP Development
    Replies: 3
    Last Post: January 22nd, 2004, 11:46 PM

IMN logo majestic logo threadwatch logo seochat tools logo