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.