Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 01-30-2003, 09:43 AM   #1
LQ Newbie
Registered: Jan 2003
Posts: 13

Rep: Reputation: 0
Compile a dynamic MySQL module/load into PHP

In need to compile a dynamic MySQL module and then load it into PHP or recompile it because of this error:

Fatal error: Call to undefined function: mysql_create_db() in /var/www/html/595_test/createDB.php on line 23

However - I cannot find a reference to this in the PHP manual. I guess I need explicit instructions on how to rectify this issue. Any help would be appreciated. (Or if another option is more desirable to a newbie such as myself, please let me know!)
Thanks in advance, Don

8.1.1 Common Problems with MySQL and PHP
Error: "Fatal error: Call to unsupported or undefined function mysql_connect() in .." This means that your PHP version isn't compiled with MySQL support. You can either compile a dynamic MySQL module and load it into PHP or recompile PHP with built-in MySQL support. This is described in detail in the PHP manual.
Error: "undefined reference to `uncompress'" This means that the client library is compiled with support for a compressed client/server protocol. The fix is to add -lz last when linking with -lmysqlclient.
Old 01-30-2003, 10:30 AM   #2
LQ Newbie
Registered: Jan 2003
Posts: 13

Original Poster
Rep: Reputation: 0
Additional note: running RH 8.0 which according the manual references PHP 4.2.0, which is what I would assume is the version installed when adding packages from the CD
Old 01-31-2003, 10:39 AM   #3
Registered: Jan 2003
Posts: 195

Rep: Reputation: 30
I thought we were still talking about it in the other thread.

Go check

and check the line about the php.ini file.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP Warning: Unable to load dynamic library xbaez Linux - Software 3 02-15-2005 07:11 PM
can't compile/load nvnet module kryptobs2000 Slackware 2 07-20-2004 01:50 PM
i want to compile and load a module into kernel ramya272 Linux - Newbie 3 02-21-2004 11:17 AM
To compile or to load as module ? synapse Linux - Newbie 3 01-30-2004 05:41 AM
php static module & dynamic module install. eye Linux - Software 0 10-18-2003 01:16 PM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 08:31 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration