我删除了 MySQL 服务器并尝试在我的系统 Lenny Debian 上再次安装它
sudo apt-get install mysql-server
在安装过程中,一切正常,直到连接测试阶段失败并停止安装。在错误日志文件中,我发现了下一个:
Trying to start service mysql... done
Trying to establish test connection... /usr/bin/mysql: error while loading shared libraries: libreadline.so.6: cannot open shared object file: No such file $
/usr/bin/mysql: error while loading shared libraries: libreadline.so.6: cannot open shared object file: No such file or directory
我得到ldd /usr/bin/mysql
了以下结果:
/usr/bin/mysql: /lib/libc.so.6: version `GLIBC_2.14' not found (required by /usr/bin/mysql)
linux-vdso.so.1 => (0x00007fff170ea000)
libpthread.so.0 => /lib/libpthread.so.0 (0x00007fe39cfab000)
libreadline.so.6 => not found
libz.so.1 => /usr/lib/libz.so.1 (0x00007fe39cd94000)
libdl.so.2 => /lib/libdl.so.2 (0x00007fe39cb90000)
libm.so.6 => /lib/libm.so.6 (0x00007fe39c90d000)
libc.so.6 => /lib/libc.so.6 (0x00007fe39c5ba000)
/lib64/ld-linux-x86-64.so.2 (0x00007fe39d1c7000)
如何安装这个缺少的库以重新启动 MySQL 服务器安装?