Libmysqlclient. so.15 cannot be found when logging on to MySQL.

Source: Internet
Author: User
Today, I found that mysql, a database in the centos System of the original virtual machine, has been unable to be started and checked for a long time. I really don't know why the configuration file has been modified.

Today, I found that mysql, a database in the centos System of the original virtual machine, has been unable to be started and checked for a long time. I really don't know why the configuration file has been modified.

Today, I found that mysql, a database in the CentOS System of the original virtual machine, has been unable to be started and checked for a long time. I really don't know why the configuration file has been modified .. I can't help but think about it later. There is no material to recompile and install it.

In accordance with the previous practice, I still choose to use the source code to edit and install the file. However, when I enter the database after installation, I am prompted that the file libmysqlclient. so.15 cannot be found. It should be a library file. Note:

[Root @ moodle mysql] # bin/mysql-u root-p

Bin/mysql: error while loading shared libraries: libmysqlclient. so.15: cannot open shared object file: No such file or directory

However, I used the find command to find libmysqlclient. so.15.0.0 and libmysqlclient. so.15 files in the database installation directory.

[Root @ moodle mysql] # find.-name libmysqlclient. so.15

./Lib/mysql/libmysqlclient. so.15

[Root @ moodle mysql] # find.-name libmysqlclient. so.15.0.0

./Lib/mysql/libmysqlclient. so.15.0.0

I think it may be because the system library/usr/lib/is associated, so I think I have tried a link operation.

[Root @ moodle mysql] # sudo ln-s/usr/local/mysql/lib/mysql/libmysqlclient. so.15/usr/lib/libmysqlclient. so.15

It's okay... But why is that? It seems that I have encountered this before. Source: exam 365

[Root @ moodle mysql] # bin/mysql-u root-p

Enter password:

Welcome to the MySQL monitor. Commands end with; or \ g.

Your MySQL connection id is 2

Server version: 5.0.67-log Source distribution

Type 'help; 'or' \ H' for help. Type '\ C' to clear the buffer.

Mysql>

,

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.