LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   mysql and libmysqlclient.so.10 (https://www.linuxquestions.org/questions/linux-general-1/mysql-and-libmysqlclient-so-10-a-230649/)

tolindsey 09-14-2004 05:59 PM

mysql and libmysqlclient.so.10
 
HI,

I have a relatively new installatin of Fedora 2, using apache for a webserver. I need to get mysql server running for our php applications. It seems to install okay, but when I go to change the root password of the database, I get the following error message:

[root@localhost root]# mysqladmin -u root password pa55word
mysqladmin: error while loading shared libraries: libmysqlclient.so.10: cannot open shared object file: No such file or directory
[root@localhost root]#

I've searched for answers to this on the web.. and have had very little luck! I am a linux newbie, so my apologies if this is a really silly question.. thanks for any help you can provide,

bigrigdriver 09-15-2004 05:25 AM

Point your browser in the direction of www.google.com/linux and enter the search word 'libmysqlclient'. Tons of returns.

tolindsey 09-15-2004 04:13 PM

Hi, thanks for the tip.. but I do have (I think) the mysql client installed.... and that file does exist! (See below for proof) :) I also included the error message again..

Any other suggestions for me?

[root@localhost root]# rpm -qa | grep mysql
mysql-3.23.58-9
php-mysql-4.3.8-2.1
mysql-server-3.23.58-9
[root@localhost root]# locate sqlclient
/usr/lib/mysql/libmysqlclient_r.so.10
/usr/lib/mysql/libmysqlclient.so.10
/usr/lib/mysql/libmysqlclient_r.so.10.0.0
/usr/lib/mysql/libmysqlclient.so.10.0.0
[root@localhost root]# mysqladmin -u root password fruitbat
mysqladmin: error while loading shared libraries: libmysqlclient.so.10: cannot open shared object file: No such file or directory
[root@localhost root]#

3spre10 09-16-2004 05:38 AM

Install for a while phpmyadmin inside your website, change the folder's name, configure it with path and user/pass (3 places) then try to acces it via any browser...

It should work fine at least for changing the password - dont forget to hit reload privileges! Then u might want to reconfigure phpmyadmin if u decide to use it...

Well if the above method works - then u might have a problem on mysql in locating the file (libmysqlclient.so.10) or accesing it (check rights)...

trickykid 09-16-2004 08:55 PM

Download this: http://downloads.mysql.com/archives/....58-1.i386.rpm

Or this:

http://downloads.mysql.com/archives/....58-1.i386.rpm

Both should work. You can even get a later version of the MySQL-shared as its backward compatible.

mhearn 09-17-2004 07:54 AM

Alternatively, try this sequence of commands as root

echo /usr/lib/mysql >> /etc/ld.so.conf
/sbin/ldconfig

That should fix it ...

mrfreeze 01-19-2006 05:06 PM

Quote:

Originally Posted by mhearn
Alternatively, try this sequence of commands as root

echo /usr/lib/mysql >> /etc/ld.so.conf
/sbin/ldconfig

That should fix it ...

Hi Mike could you give me the command to undo this command u gave us?
Now instead of two missing lib files I have twelve


All times are GMT -5. The time now is 07:04 AM.