Problem with MySQL using CentOS 6

Hi, I'm having this kind of error > error while loading shared libraries: libmysqlclient.so.15: cannot open shared object file: No such file or directory what should I do to fix this?

5 Replies

It sounds like you need to install the MySQL client libraries for whatever you're trying to do, or else you're using a binary that was linked against a older version of MySQL/CentOS.

If this error came from a non-CentOS 6.0 binary, you need to get a newer version of it. If it came from something installed with CentOS 6.0 and you used the normal method to install it (yum), there's a bug. If it's something you're compiling yourself, make sure that the MySQL client development package is installed. (I don't know what they call it, but it's libmysqlclient-dev on Ubuntu and Debian.)

It's okay now, I just rebuild it again back to Centos 5.0 so I can use MySQL 5.0 instead of 5.1.

Just remember to upgrade by March 2014. ;-)

@hoopycat:

Just remember to upgrade by March 2014. ;-) Are you sure that applies to CentOS 5.0? I'd think that it only applies to CentOS 5.7

I'm assuming CentOS 5.x was meant by CentOS 5.0… the minor "releases" kinda melt into each other, with the expectation that regular updates on a CentOS 5.x box will eventually get you to CentOS max(5.x). (In RHEL, the minor releases are more of checkpoints in time over the life of a major release; an occasion to burn new CDs to save bandwidth during initial yum updates.)

A system pinned to CentOS 5.0 will have had its yum broken for about five years now.

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct