MySQL 5.5初始化报错 undefined symbol: _ZZ16randomized_indexPKvjE5seed1 Installation of system tables fai

一、问题描述

二进制安装MySQL5.5,初始化报错如下:

[root@redhat01 mysql]# /usr/local/mysql/scripts/mysql_install_db --user=mysql  --basedir=/usr/local/mysql --datadir=/data/mysql/mysql3306/data
Installing MySQL system tables...
/usr/local/mysql/bin/mysqld: symbol lookup error: /usr/local/mysql/bin/mysqld: undefined symbol: _ZZ16randomized_indexPKvjE5seed1
Installation of system tables failed!  Examine the logs in
/data/mysql/mysql3306/data for more information.
You can try to start the mysqld daemon with:
    shell> /usr/local/mysql/bin/mysqld --skip-grant &
and use the command line tool /usr/local/mysql/bin/mysql
to connect to the mysql database and look at the grant tables:

    shell> /usr/local/mysql/bin/mysql -u root mysql
    mysql> show tables
Try 'mysqld --help' if you have problems with paths.  Using --log
gives you a log in /data/mysql/mysql3306/data that may be helpful.
Please consult the MySQL manual section
'Problems running mysql_install_db', and the manual section that
describes problems on your OS.  Another information source are the
MySQL email archives available at http://lists.mysql.com/.
Please check all of the above before submitting a bug report
at http://bugs.mysql.com/

[root@redhat01 mysql]# 

二、问题分析

尝试了各种可能后报错依旧

[root@redhat01 mysql]# rpm -qa glibc
glibc-2.5-49
glibc-2.5-49
[root@redhat01 mysql]# cat /etc/redhat-release 
Red Hat Enterprise Linux Server release 5.5 (Tikanga)

[root@redhat01 mysql]# 

而安装包mysql-5.5.60-linux-glibc2.12-x86_64.tar.gz

可能系统glibc版本过低

三、问题解决:

换centos6.8,初始化成功



你可能感兴趣的:(MySql)