PHP+MySQLの環境で、以下のようなエラーが大量に表示されるらしい・・・


-----------------------------------------------------------------

File 'NONEXISTENT/charsets/?.conf' not found (Errcode: 2)

Character set '#12' is not a compiled character set and is not specified

in the 'NONEXISTENT/charsets/Index' file
-----------------------------------------------------------------


とりあえず、ググってみたところどうやら、MySQLのライブラリのパスが

PHPの要求するライブラリのパスとは違う場所にあることが原因のよう。


したがって、以下の通りにシンボリックリンクを作成すれば、

エラーが出なくなります。


# mkdir /usr/local/lib/mysql
# cd /usr/local/lib/mysql/
# ln -s /usr/local/mysql/include/mysql/ include
# ln -s /usr/local/mysql/lib/mysql/ lib



PHPの方でそろえて欲しいなぁ・・・まったく。



参考サイト

http://ml.php.gr.jp/pipermail/php-users/2003-October/019256.html