MySQL Troubleshooting: Failure to Read Library File

Source: Internet
Author: User
Keywords mysql troubleshooting mysql troubleshooting procedure mysql troubleshooting commands

This article will show you MySQL troubleshooting procedure of failing to read mysql library file.

After configuring snort, the following error appears when running the snort command:

snort: error while loading shared libraries: libmysqlclient.so.16: cannot open shared object file: No such file or directory

Solution:
1. Add the following 2 lines to /etc/ld.so.conf:
 

Copy the code code as follows:
/usr/local/mysql/lib/mysql
/usr/local/lib
Then use ldconfig to reload the library file, but I found that it still can't solve the problem. I don't know if it is my environment or other problems.

2. Use soft connection:
ln -s /usr/local/mysql/lib/libmysqlclient.so.16 /usr/lib/libmysqlclient.so.16
/Usr/local/mysql/lib/libmysqlclient.so.16 here should be changed according to your actual situation.
Then the above errors did not appear when using the snort command.
Related Article

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.