“Reference”

Blog.csdn.net/llliuhuiii/…

www.jianshu.com/p/276d59cbc…

www.cnblogs.com/jiangfeilon…

Liunx mysql connection error after installation

mysql: error while loading shared libraries: libtinfo.so.5: cannot open shared object file: No such file or directory

Resolution record:

  1. CD CD /usr/local/mysql.bin/ the mysql installation directory is displayed

  2. ldd mysql

    Check whether libtinfo.so.5 is present in mysql dependencies

    linux-vdso.so.1 (0x00007ffd9b631000) libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f508f53a000) librt.so.1 => / lib64 / librt. So. 1 (0 x00007f508f332000) libcrypto. So. = > 1.1 / usr/local/mysql/bin /. /.. / lib/private/libcrypto. So. 1.1 (0 x00007f508ee81000) libssl. So. = > 1.1 / usr/local/mysql/bin /. /.. / lib/private/libssl. So. 1.1 (0 x00007f508ebf1000) libdl. So, 2 = > / lib64 / libdl. So. 2 (0 x00007f508e9ed000) libresolv. So, 2 = > /lib64/libresolv.so.2 (0x00007f508e7d7000) libtinfo.so.5 => not found libstdc++.so.6 => /lib64/libstdc++.so.6 (0x00007f508e455000) libm.so.6 => /lib64/libm.so.6 (0x00007f508e115000) libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x00007f508deff000) libc.so.6 => /lib64/libc.so.6 (0x00007f508db54000) /lib64/ld-linux-x86-64.so.2 (0x00007f508f758000)Copy the code

    See the libtinfo.so.5 dependency is empty

  3. Copy a copy from another machine that depends on it or download a copy from other places, such as here from Baidu cloud download pan.baidu.com/s/1SFza-Fa2…

  4. Put the downloaded libtinfo.so.5 in /lib64/libtinfo.so

  5. Check out LDD dependent mysql in mysql Li here

    linux-vdso.so.1 (0x00007ffc00d99000) libpthread.so.0 => /lib64/libpthread.so.0 (0x00007fc9412d7000) librt.so.1 => / lib64 / librt. So. 1 (0 x00007fc9410cf000) libcrypto. So. = > 1.1 / usr/local/mysql/bin /. /.. / lib/private/libcrypto. So. 1.1 (0 x00007fc940c1e000) libssl. So. = > 1.1 / usr/local/mysql/bin /. /.. / lib/private/libssl. So. 1.1 (0 x00007fc94098e000) libdl. So, 2 = > / lib64 / libdl. So. 2 (0 x00007fc94078a000) libresolv. So, 2 = > /lib64/libresolv.so.2 (0x00007fc940574000) libtinfo.so.5 => /lib64/libtinfo.so.5 (0x00007fc94034a000) libstdc++.so.6 => /lib64/libstdc++.so.6 (0x00007fc93ffc8000) libm.so.6 => /lib64/libm.so.6 (0x00007fc93fc88000) libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x00007fc93fa72000) libc.so.6 => /lib64/libc.so.6 (0x00007fc93f6c7000) /lib64/ld-linux-x86-64.so.2  (0x00007fc9414f5000)Copy the code

    See that dependencies are already there

    Mysql -u root -p mysql -u root -p