我删除了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服务器安装?