1. 程式人生 > >MySQL 5.5初始化報錯 undefined symbol: _ZZ16randomized_indexPKvjE5seed1 Installation of system tables fai

MySQL 5.5初始化報錯 undefined symbol: _ZZ16randomized_indexPKvjE5seed1 Installation of system tables fai

一、問題描述

二進位制安裝MySQL5.5,初始化報錯如下:

[[email protected] 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/

[[email protected] mysql]# 

二、問題分析

嘗試了各種可能後報錯依舊

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

[[email protected] mysql]# 

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

可能系統glibc版本過低

三、問題解決:

換centos6.8,初始化成功