Some problems after upgrading MySQL

Nightweaver

Member
Aug 26, 2005
11
0
151
Belgrade
I've upgraded MySQL from 4.0 to 4.1. Everything went fine and I've reinstalled Apache and PHP after that. Now, some of my users get this message in their log although their apps work fine:

/usr/local/bin/php: error while loading shared libraries: libmysqlclient.so.12: cannot open shared object file: No such
file or directory
 

virtuose

Member
Sep 26, 2003
16
0
151
error while loading shared libraries: libmysqlclient.so.12

I have the same error, what your php version ??

I dont have possibility to compile mysql 4.1 with php 5.0.4, it give to me error and httpd not start!

Actualy I use mysql 4.1 with php 4.4 but I receive the error:
/usr/local/bin/php: error while loading shared libraries: libmysqlclient.so.12: cannot open shared object file: No such file or directory

If anyone have an idea, it be great! :confused:

Thank for your help.

Ben.
 

kieranmullen

Well-Known Member
Aug 25, 2005
165
0
166
Portland, OR USA
Creating a link to the file... Does that really file the problem?

I am runing PHP441 I have not upgraded anything...

I just get this error

php -V
php: error while loading shared libraries: libmysqlclient.so.12: cannot open shared object file: No such file or directory


virtuose said:
Hey,

Try this one in ssh:

ln -s /usr/lib/libmysqlclient.so.14 /usr/lib/libmysqlclient.so.12

It work great for me :)