Centos – Can’t run MySql > GLIBC_2.14 not found

centosglibcMySQL

mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
/usr/libexec/mysqld: /lib64/libc.so.6: version `GLIBC_2.14' not found (required by /usr/lib64/libstdc++.so.6)

Starting MySql server with service mysqld start shows me this error.

How can i fix it? Tried to run a yum update, and yum reinstall glib* but nothing…

OS: CentOs 6.7 x64

Only today is not working, till yesterday worked great.

Name        : mysql
Arch        : x86_64
Version     : 5.1.73
Release     : 5.el6_6
Size        : 894 k
Repo        : base
Summary     : MySQL client programs and shared libraries
URL         : http://www.mysql.com
License     : GPLv2 with exceptions


yum info mysql-server
Name        : mysql-server
Arch        : x86_64
Version     : 5.1.73
Release     : 5.el6_6
Size        : 8.6 M
Repo        : base
Summary     : The MySQL server and related files
URL         : http://www.mysql.com
License     : GPLv2 with exceptions

i installed mysql with: yum install mysql && yum install mysql-server

mysqld is the process.

rpm -qf /usr/libexec/mysqld 
mysql55w-server-5.5.46-1.w6.x86_64 

yum info mysql55w-server
Name        : mysql55w-server
Arch        : x86_64
Version     : 5.5.46
Release     : 1.w6
Size        : 45 M
Repo        : installed
From repo   : webtatic
Summary     : The MySQL server and related files
URL         : http://www.mysql.com
License     : GPLv2 with exceptions

Best Answer

I've just spun up a C6 VM, installed the webtatic repo on it, and got the server package installed and running. I don't know how you got it to install on top of the existing mysqld, but at any rate, when I install it in place of the existing one, the glibc requirements are correct and are satisfied.

Why yours is asking for glibc 2.14, I can't understand. Maybe webtatic temporarily released one with wrong run-time links, then released a correct one over the top of it without bumping the version number. It's hard to say, but this is the sort of thing that sometimes happens when you decide to go off-piste and install things from strange repos.

If I were you, I'd make a copy of /var/lib/mysql, uninstall and reinstall the mysql55w packages (doing it cleanly this time!), then stop the freshly-installed mysqld, copying your /var/lib/mysql in place of any new one that might have appeared (and keeping any such new one to hand in case you need it), and trying to start the server up.

Failing that, get ready to restore your DB from backups.

Related Topic