I've just spent some time battling the "fatal error call to undefined function mysql_connect()" message, and as it wasn't clear to me, I thought it may help to say:
php_mysqli does not replace the php_mysql library. It only extends it. You need the php_mysql library !
要件
これらの関数を有効にするには、mysqli 拡張サポートを 有効にして PHP をコンパイルする必要があります。
注意:
mysqli 拡張サポートは MySQL 4.1.3 以上、あるいは 5.0.7 以上で動作するよう設計されています。 それ以前のバージョンについては MySQL 拡張サポートのドキュメントをご覧ください。
integraljohn at gmail dot com
07-Mar-2012 07:36
dennylin93 at cnmc32 dot hs dot ntnu dot edu dot tw
13-Oct-2009 07:16
The required extensions will be pulled in automatically on FreeBSD, unless you manually remove them after installation.
tommyhp2
19-Jan-2009 06:03
If you're building this on FreeBSD, make sure that you have SPL and SimpleXML in the extensions.ini.
