一、环境:

centos7.8 X86_64位最小化安装

[root@dbstandby08 ~]# cat /etc/redhat-release 
CentOS Linux release 7.8.2003 (Core)

二、初始化MySQL

2.1、提前配置好my.cnf配置文件,开始初始化,直接报错:

[root@dbstandby08 local]# /usr/local/mysql8.4.3/bin/mysqld  --defaults-file=/etc/my.cnf --initialize-insecure  --user=mysql --datadir=/data/mysql8.4/data/
/usr/local/mysql8.4.3/bin/mysqld: /lib64/libstdc++.so.6: version `CXXABI_1.3.11' not found (required by /usr/local/mysql8.4.3/bin/mysqld)
/usr/local/mysql8.4.3/bin/mysqld: /lib64/libstdc++.so.6: version `CXXABI_1.3.8' not found (required by /usr/local/mysql8.4.3/bin/mysqld)
/usr/local/mysql8.4.3/bin/mysqld: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.22' not found (required by /usr/local/mysql8.4.3/bin/mysqld)
/usr/local/mysql8.4.3/bin/mysqld: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.20' not found (required by /usr/local/mysql8.4.3/bin/mysqld)
/usr/local/mysql8.4.3/bin/mysqld: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by /usr/local/mysql8.4.3/bin/mysqld)
/usr/local/mysql8.4.3/bin/mysqld: /lib64/libstdc++.so.6: version `CXXABI_1.3.9' not found (required by /usr/local/mysql8.4.3/bin/mysqld)
/usr/local/mysql8.4.3/bin/mysqld: /lib64/libm.so.6: version `GLIBC_2.27' not found (required by /usr/local/mysql8.4.3/bin/mysqld)
/usr/local/mysql8.4.3/bin/mysqld: /lib64/libc.so.6: version `GLIBC_2.28' not found (required by /usr/local/mysql8.4.3/bin/mysqld)
/usr/local/mysql8.4.3/bin/mysqld: /lib64/libc.so.6: version `GLIBC_2.25' not found (required by /usr/local/mysql-8.4.3-linux-glibc2.28-x86_64/bin/../lib/private/libcrypto.so.3)
/usr/local/mysql8.4.3/bin/mysqld: /lib64/libc.so.6: version `GLIBC_2.28' not found (required by /usr/local/mysql-8.4.3-linux-glibc2.28-x86_64/bin/../lib/private/libprotobuf-lite.so.24.4.0)
/usr/local/mysql8.4.3/bin/mysqld: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.20' not found (required by /usr/local/mysql-8.4.3-linux-glibc2.28-x86_64/bin/../lib/private/libprotobuf-lite.so.24.4.0)
/usr/local/mysql8.4.3/bin/mysqld: /lib64/libstdc++.so.6: version `CXXABI_1.3.9' not found (required by /usr/local/mysql-8.4.3-linux-glibc2.28-x86_64/bin/../lib/private/libprotobuf-lite.so.24.4.0)
/usr/local/mysql8.4.3/bin/mysqld: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by /usr/local/mysql-8.4.3-linux-glibc2.28-x86_64/bin/../lib/private/libprotobuf-lite.so.24.4.0)
/usr/local/mysql8.4.3/bin/mysqld: /lib64/libstdc++.so.6: version `CXXABI_1.3.9' not found (required by /usr/local/mysql-8.4.3-linux-glibc2.28-x86_64/bin/../lib/private/libabsl_log_internal_check_op.so)
/usr/local/mysql8.4.3/bin/mysqld: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by /usr/local/mysql-8.4.3-linux-glibc2.28-x86_64/bin/../lib/private/libabsl_log_internal_check_op.so)
/usr/local/mysql8.4.3/bin/mysqld: /lib64/libstdc++.so.6: version `CXXABI_1.3.9' not found (required by /usr/local/mysql-8.4.3-linux-glibc2.28-x86_64/bin/../lib/private/libabsl_die_if_null.so)
/usr/local/mysql8.4.3/bin/mysqld: /lib64/libstdc++.so.6: version `CXXABI_1.3.9' not found (required by /usr/local/mysql-8.4.3-linux-glibc2.28-x86_64/bin/../lib/private/libabsl_log_internal_message.so)
/usr/local/mysql8.4.3/bin/mysqld: /lib64/libstdc++.so.6: version `CXXABI_1.3.8' not found (required by /usr/local/mysql-8.4.3-linux-glibc2.28-x86_64/bin/../lib/private/libabsl_log_internal_message.so)
/usr/local/mysql8.4.3/bin/mysqld: /lib64/libstdc++.so.6: version `CXXABI_1.3.9' not found (required by /usr/local/mysql-8.4.3-linux-glibc2.28-x86_64/bin/../lib/private/libabsl_log_internal_log_sink_set.so)
/usr/local/mysql8.4.3/bin/mysqld: /lib64/libstdc++.so.6: version `CXXABI_1.3.9' not found (required by /usr/local/mysql-8.4.3-linux-glibc2.28-x86_64/bin/../lib/private/libabsl_flags_internal.so)
/usr/local/mysql8.4.3/bin/mysqld: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.20' not found (required by /usr/local/mysql-8.4.3-linux-glibc2.28-x86_64/bin/../lib/private/libabsl_flags_marshalling.so)
/usr/local/mysql8.4.3/bin/mysqld: /lib64/libstdc++.so.6: version `CXXABI_1.3.9' not found (required by /usr/local/mysql-8.4.3-linux-glibc2.28-x86_64/bin/../lib/private/libabsl_flags_marshalling.so)
/usr/local/mysql8.4.3/bin/mysqld: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by /usr/local/mysql-8.4.3-linux-glibc2.28-x86_64/bin/../lib/private/libabsl_flags_marshalling.so)
/usr/local/mysql8.4.3/bin/mysqld: /lib64/libstdc++.so.6: version `CXXABI_1.3.9' not found (required by /usr/local/mysql-8.4.3-linux-glibc2.28-x86_64/bin/../lib/private/libabsl_flags_reflection.so)
/usr/local/mysql8.4.3/bin/mysqld: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.20' not found (required by /usr/local/mysql-8.4.3-linux-glibc2.28-x86_64/bin/../lib/private/libabsl_flags_config.so)
/usr/local/mysql8.4.3/bin/mysqld: /lib64/libstdc++.so.6: version `CXXABI_1.3.9' not found (required by /usr/local/mysql-8.4.3-linux-glibc2.28-x86_64/bin/../lib/private/libabsl_flags_config.so)
/usr/local/mysql8.4.3/bin/mysqld: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.20' not found (required by /usr/local/mysql-8.4.3-linux-glibc2.28-x86_64/bin/../lib/private/libabsl_flags_program_name.so)
/usr/local/mysql8.4.3/bin/mysqld: /lib64/libstdc++.so.6: version `CXXABI_1.3.9' not found (required by /usr/local/mysql-8.4.3-linux-glibc2.28-x86_64/bin/../lib/private/libabsl_flags_program_name.so)
/usr/local/mysql8.4.3/bin/mysqld: /lib64/libstdc++.so.6: version `CXXABI_1.3.9' not found (required by /usr/local/mysql-8.4.3-linux-glibc2.28-x86_64/bin/../lib/private/libabsl_flags_commandlineflag_internal.so)
/usr/local/mysql8.4.3/bin/mysqld: /lib64/libstdc++.so.6: version `CXXABI_1.3.9' not found (required by /usr/local/mysql-8.4.3-linux-glibc2.28-x86_64/bin/../lib/private/libabsl_log_globals.so)
/usr/local/mysql8.4.3/bin/mysqld: /lib64/libstdc++.so.6: version `CXXABI_1.3.9' not found (required by /usr/local/mysql-8.4.3-linux-glibc2.28-x86_64/bin/../lib/private/libabsl_hashtablez_sampler.so)
/usr/local/mysql8.4.3/bin/mysqld: /lib64/libstdc++.so.6: version `CXXABI_1.3.9' not found (required by /usr/local/mysql-8.4.3-linux-glibc2.28-x86_64/bin/../lib/private/libabsl_statusor.so)
/usr/local/mysql8.4.3/bin/mysqld: /lib64/libstdc++.so.6: version `CXXABI_1.3.9' not found (required by /usr/local/mysql-8.4.3-linux-glibc2.28-x86_64/bin/../lib/private/libabsl_status.so)
/usr/local/mysql8.4.3/bin/mysqld: /lib64/libstdc++.so.6: version `CXXABI_1.3.8' not found (required by /usr/local/mysql-8.4.3-linux-glibc2.28-x86_64/bin/../lib/private/libabsl_status.so)
/usr/local/mysql8.4.3/bin/mysqld: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.20' not found (required by /usr/local/mysql-8.4.3-linux-glibc2.28-x86_64/bin/../lib/private/libabsl_cord.so)
/usr/local/mysql8.4.3/bin/mysqld: /lib64/libstdc++.so.6: version `CXXABI_1.3.9' not found (required by /usr/local/mysql-8.4.3-linux-glibc2.28-x86_64/bin/../lib/private/libabsl_cord.so)
/usr/local/mysql8.4.3/bin/mysqld: /lib64/libstdc++.so.6: version `CXXABI_1.3.8' not found (required by /usr/local/mysql-8.4.3-linux-glibc2.28-x86_64/bin/../lib/private/libabsl_cord.so)
/usr/local/mysql8.4.3/bin/mysqld: /lib64/libstdc++.so.6: version `CXXABI_1.3.9' not found (required by /usr/local/mysql-8.4.3-linux-glibc2.28-x86_64/bin/../lib/private/libabsl_cordz_info.so)
/usr/local/mysql8.4.3/bin/mysqld: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.20' not found (required by /usr/local/mysql-8.4.3-linux-glibc2.28-x86_64/bin/../lib/private/libabsl_cord_internal.so)
/usr/local/mysql8.4.3/bin/mysqld: /lib64/libstdc++.so.6: version `CXXABI_1.3.9' not found (required by /usr/local/mysql-8.4.3-linux-glibc2.28-x86_64/bin/../lib/private/libabsl_cord_internal.so)
/usr/local/mysql8.4.3/bin/mysqld: /lib64/libstdc++.so.6: version `CXXABI_1.3.9' not found (required by /usr/local/mysql-8.4.3-linux-glibc2.28-x86_64/bin/../lib/private/libabsl_cordz_handle.so)
/usr/local/mysql8.4.3/bin/mysqld: /lib64/libstdc++.so.6: version `CXXABI_1.3.9' not found (required by /usr/local/mysql-8.4.3-linux-glibc2.28-x86_64/bin/../lib/private/libabsl_crc_cord_state.so)
/usr/local/mysql8.4.3/bin/mysqld: /lib64/libstdc++.so.6: version `CXXABI_1.3.8' not found (required by /usr/local/mysql-8.4.3-linux-glibc2.28-x86_64/bin/../lib/private/libabsl_crc_cord_state.so)
/usr/local/mysql8.4.3/bin/mysqld: /lib64/libstdc++.so.6: version `CXXABI_1.3.9' not found (required by /usr/local/mysql-8.4.3-linux-glibc2.28-x86_64/bin/../lib/private/libabsl_crc32c.so)
/usr/local/mysql8.4.3/bin/mysqld: /lib64/libstdc++.so.6: version `CXXABI_1.3.9' not found (required by /usr/local/mysql-8.4.3-linux-glibc2.28-x86_64/bin/../lib/private/libabsl_crc_internal.so)
/usr/local/mysql8.4.3/bin/mysqld: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.20' not found (required by /usr/local/mysql-8.4.3-linux-glibc2.28-x86_64/bin/../lib/private/libabsl_str_format_internal.so)
/usr/local/mysql8.4.3/bin/mysqld: /lib64/libstdc++.so.6: version `CXXABI_1.3.9' not found (required by /usr/local/mysql-8.4.3-linux-glibc2.28-x86_64/bin/../lib/private/libabsl_str_format_internal.so)
/usr/local/mysql8.4.3/bin/mysqld: /lib64/libstdc++.so.6: version `CXXABI_1.3.8' not found (required by /usr/local/mysql-8.4.3-linux-glibc2.28-x86_64/bin/../lib/private/libabsl_str_format_internal.so)
/usr/local/mysql8.4.3/bin/mysqld: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by /usr/local/mysql-8.4.3-linux-glibc2.28-x86_64/bin/../lib/private/libabsl_str_format_internal.so)
/usr/local/mysql8.4.3/bin/mysqld: /lib64/libstdc++.so.6: version `CXXABI_1.3.9' not found (required by /usr/local/mysql-8.4.3-linux-glibc2.28-x86_64/bin/../lib/private/libabsl_strerror.so)
/usr/local/mysql8.4.3/bin/mysqld: /lib64/libstdc++.so.6: version `CXXABI_1.3.9' not found (required by /usr/local/mysql-8.4.3-linux-glibc2.28-x86_64/bin/../lib/private/libabsl_time.so)
/usr/local/mysql8.4.3/bin/mysqld: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.20' not found (required by /usr/local/mysql-8.4.3-linux-glibc2.28-x86_64/bin/../lib/private/libabsl_strings.so)
/usr/local/mysql8.4.3/bin/mysqld: /lib64/libstdc++.so.6: version `CXXABI_1.3.9' not found (required by /usr/local/mysql-8.4.3-linux-glibc2.28-x86_64/bin/../lib/private/libabsl_strings.so)
/usr/local/mysql8.4.3/bin/mysqld: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by /usr/local/mysql-8.4.3-linux-glibc2.28-x86_64/bin/../lib/private/libabsl_throw_delegate.so)
/usr/local/mysql8.4.3/bin/mysqld: /lib64/libstdc++.so.6: version `CXXABI_1.3.9' not found (required by /usr/local/mysql-8.4.3-linux-glibc2.28-x86_64/bin/../lib/private/libabsl_strings_internal.so)
/usr/local/mysql8.4.3/bin/mysqld: /lib64/libstdc++.so.6: version `CXXABI_1.3.9' not found (required by /usr/local/mysql-8.4.3-linux-glibc2.28-x86_64/bin/../lib/private/libabsl_base.so)
/usr/local/mysql8.4.3/bin/mysqld: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.20' not found (required by /usr/local/mysql-8.4.3-linux-glibc2.28-x86_64/bin/../lib/private/libabsl_int128.so)
/usr/local/mysql8.4.3/bin/mysqld: /lib64/libstdc++.so.6: version `CXXABI_1.3.9' not found (required by /usr/local/mysql-8.4.3-linux-glibc2.28-x86_64/bin/../lib/private/libabsl_int128.so)
/usr/local/mysql8.4.3/bin/mysqld: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by /usr/local/mysql-8.4.3-linux-glibc2.28-x86_64/bin/../lib/private/libabsl_int128.so)
/usr/local/mysql8.4.3/bin/mysqld: /lib64/libstdc++.so.6: version `CXXABI_1.3.9' not found (required by /usr/local/mysql-8.4.3-linux-glibc2.28-x86_64/bin/../lib/private/libabsl_civil_time.so)
/usr/local/mysql8.4.3/bin/mysqld: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by /usr/local/mysql-8.4.3-linux-glibc2.28-x86_64/bin/../lib/private/libabsl_civil_time.so)
/usr/local/mysql8.4.3/bin/mysqld: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.20' not found (required by /usr/local/mysql-8.4.3-linux-glibc2.28-x86_64/bin/../lib/private/libabsl_time_zone.so)
/usr/local/mysql8.4.3/bin/mysqld: /lib64/libstdc++.so.6: version `CXXABI_1.3.9' not found (required by /usr/local/mysql-8.4.3-linux-glibc2.28-x86_64/bin/../lib/private/libabsl_time_zone.so)
/usr/local/mysql8.4.3/bin/mysqld: /lib64/libstdc++.so.6: version `CXXABI_1.3.8' not found (required by /usr/local/mysql-8.4.3-linux-glibc2.28-x86_64/bin/../lib/private/libabsl_time_zone.so)
/usr/local/mysql8.4.3/bin/mysqld: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by /usr/local/mysql-8.4.3-linux-glibc2.28-x86_64/bin/../lib/private/libabsl_time_zone.so)
[root@dbstandby08 local]# 

2.2、查看当前libstdc++.so.6库包含的GLIBCXX版本:

[root@dbstandby08 local]# strings /lib64/libstdc++.so.6 |grep GLIBCXX_
GLIBCXX_3.4
GLIBCXX_3.4.1
GLIBCXX_3.4.2
GLIBCXX_3.4.3
GLIBCXX_3.4.4
GLIBCXX_3.4.5
GLIBCXX_3.4.6
GLIBCXX_3.4.7
GLIBCXX_3.4.8
GLIBCXX_3.4.9
GLIBCXX_3.4.10
GLIBCXX_3.4.11
GLIBCXX_3.4.12
GLIBCXX_3.4.13
GLIBCXX_3.4.14
GLIBCXX_3.4.15
GLIBCXX_3.4.16
GLIBCXX_3.4.17
GLIBCXX_3.4.18
GLIBCXX_3.4.19
GLIBCXX_DEBUG_MESSAGE_LENGTH

2.3、根据报错日志提示 需要更新lib库: libstdc++.so.6.0.26

##下载libstdc++.so.6.0.26库文件:

cd /root/
wget https://cdn.frostbelt.cn/software/libstdc%2B%2B.so.6.0.26 --no-check-certificate

##替换系统中的/usr/lib64:

cp libstdc++.so.6.0.26 /usr/lib64/
cd /usr/lib64/
ln -snf ./libstdc++.so.6.0.26  libstdc++.so.6

更新libstdc++.so.6后 GLIBCXX版本如下:


[root@dbstandby08 ~]# strings /usr/lib64/libstdc++.so.6|grep GLIBCXX_
GLIBCXX_3.4
GLIBCXX_3.4.1
GLIBCXX_3.4.2
GLIBCXX_3.4.3
GLIBCXX_3.4.4
GLIBCXX_3.4.5
GLIBCXX_3.4.6
GLIBCXX_3.4.7
GLIBCXX_3.4.8
GLIBCXX_3.4.9
GLIBCXX_3.4.10
GLIBCXX_3.4.11
GLIBCXX_3.4.12
GLIBCXX_3.4.13
GLIBCXX_3.4.14
GLIBCXX_3.4.15
GLIBCXX_3.4.16
GLIBCXX_3.4.17
GLIBCXX_3.4.18
GLIBCXX_3.4.19
GLIBCXX_3.4.20
GLIBCXX_3.4.21
GLIBCXX_3.4.22
GLIBCXX_3.4.23
GLIBCXX_3.4.24
GLIBCXX_3.4.25
GLIBCXX_3.4.26
GLIBCXX_DEBUG_MESSAGE_LENGTH
_ZNKSt14basic_ifstreamIcSt11char_traitsIcEE7is_openEv@GLIBCXX_3.4
_ZNSt13basic_istreamIwSt11char_traitsIwEE6ignoreEv@@GLIBCXX_3.4.5
_ZNKSbIwSt11char_traitsIwESaIwEE11_M_disjunctEPKw@GLIBCXX_3.4
_ZNKSt14basic_ifstreamIwSt11char_traitsIwEE7is_openEv@@GLIBCXX_3.4.5
GLIBCXX_3.4.21
GLIBCXX_3.4.9
_ZSt10adopt_lock@@GLIBCXX_3.4.11
GLIBCXX_3.4.10
GLIBCXX_3.4.16
GLIBCXX_3.4.1
_ZNSt19istreambuf_iteratorIcSt11char_traitsIcEEppEv@GLIBCXX_3.4
_ZNSs7_M_copyEPcPKcm@GLIBCXX_3.4
GLIBCXX_3.4.25
_ZNSt19istreambuf_iteratorIcSt11char_traitsIcEEppEv@@GLIBCXX_3.4.5
_ZNSs7_M_moveEPcPKcm@@GLIBCXX_3.4.5
_ZNKSt13basic_fstreamIwSt11char_traitsIwEE7is_openEv@GLIBCXX_3.4
_ZNKSt13basic_fstreamIcSt11char_traitsIcEE7is_openEv@GLIBCXX_3.4
_ZNSbIwSt11char_traitsIwESaIwEE4_Rep26_M_set_length_and_sharableEm@@GLIBCXX_3.4.5
_ZNSs4_Rep26_M_set_length_and_sharableEm@GLIBCXX_3.4
_ZSt10defer_lock@@GLIBCXX_3.4.11
_ZN10__gnu_norm15_List_node_base4swapERS0_S1_@@GLIBCXX_3.4
_ZNSs9_M_assignEPcmc@@GLIBCXX_3.4.5
_ZNKSbIwSt11char_traitsIwESaIwEE15_M_check_lengthEmmPKc@@GLIBCXX_3.4.5
_ZNKSt14basic_ifstreamIcSt11char_traitsIcEE7is_openEv@@GLIBCXX_3.4.5
_ZNSbIwSt11char_traitsIwESaIwEE7_M_moveEPwPKwm@GLIBCXX_3.4
GLIBCXX_3.4.24
_ZNVSt9__atomic011atomic_flag12test_and_setESt12memory_order@@GLIBCXX_3.4.11
GLIBCXX_3.4.20
_ZNSt11char_traitsIwE2eqERKwS2_@@GLIBCXX_3.4.5
GLIBCXX_3.4.12
_ZNSi6ignoreEv@@GLIBCXX_3.4.5
GLIBCXX_3.4.2
_ZNSt11char_traitsIcE2eqERKcS2_@@GLIBCXX_3.4.5
GLIBCXX_3.4.6
GLIBCXX_3.4.15
_ZNKSt13basic_fstreamIcSt11char_traitsIcEE7is_openEv@@GLIBCXX_3.4.5
_ZNSs9_M_assignEPcmc@GLIBCXX_3.4
GLIBCXX_3.4.19
_ZNKSt14basic_ofstreamIwSt11char_traitsIwEE7is_openEv@GLIBCXX_3.4
_ZNSt19istreambuf_iteratorIwSt11char_traitsIwEEppEv@GLIBCXX_3.4
_ZN10__gnu_norm15_List_node_base7reverseEv@@GLIBCXX_3.4
_ZN10__gnu_norm15_List_node_base4hookEPS0_@@GLIBCXX_3.4
_ZNSt11char_traitsIwE2eqERKwS2_@GLIBCXX_3.4
_ZNSbIwSt11char_traitsIwESaIwEE7_M_copyEPwPKwm@GLIBCXX_3.4
_ZNSbIwSt11char_traitsIwESaIwEE7_M_copyEPwPKwm@@GLIBCXX_3.4.5
GLIBCXX_3.4.23
GLIBCXX_3.4.3
GLIBCXX_3.4.7
_ZNSi6ignoreEl@@GLIBCXX_3.4.5
_ZNKSbIwSt11char_traitsIwESaIwEE11_M_disjunctEPKw@@GLIBCXX_3.4.5
_ZNSt13basic_istreamIwSt11char_traitsIwEE6ignoreEv@GLIBCXX_3.4
_ZNKSt13basic_fstreamIwSt11char_traitsIwEE7is_openEv@@GLIBCXX_3.4.5
_ZNSbIwSt11char_traitsIwESaIwEE7_M_moveEPwPKwm@@GLIBCXX_3.4.5
GLIBCXX_3.4.18
_ZNSbIwSt11char_traitsIwESaIwEE4_Rep26_M_set_length_and_sharableEm@GLIBCXX_3.4
_ZNSt13basic_istreamIwSt11char_traitsIwEE6ignoreEl@@GLIBCXX_3.4.5
_ZSt15future_category@@GLIBCXX_3.4.14
_ZNSi6ignoreEl@GLIBCXX_3.4
_ZNSt11char_traitsIcE2eqERKcS2_@GLIBCXX_3.4
_ZNKSs15_M_check_lengthEmmPKc@GLIBCXX_3.4
_ZN10__gnu_norm15_List_node_base8transferEPS0_S1_@@GLIBCXX_3.4
_ZNSbIwSt11char_traitsIwESaIwEE9_M_assignEPwmw@GLIBCXX_3.4
_ZNVSt9__atomic011atomic_flag5clearESt12memory_order@@GLIBCXX_3.4.11
_ZNKSt14basic_ofstreamIcSt11char_traitsIcEE7is_openEv@@GLIBCXX_3.4.5
_ZNKSt14basic_ofstreamIcSt11char_traitsIcEE7is_openEv@GLIBCXX_3.4
_ZNSs7_M_moveEPcPKcm@GLIBCXX_3.4
_ZNSt13basic_istreamIwSt11char_traitsIwEE6ignoreEl@GLIBCXX_3.4
_ZNSbIwSt11char_traitsIwESaIwEE9_M_assignEPwmw@@GLIBCXX_3.4.5
_ZNKSbIwSt11char_traitsIwESaIwEE15_M_check_lengthEmmPKc@GLIBCXX_3.4
_ZNKSs11_M_disjunctEPKc@@GLIBCXX_3.4.5
_ZN10__gnu_norm15_List_node_base6unhookEv@@GLIBCXX_3.4
GLIBCXX_3.4.22
_ZNSt19istreambuf_iteratorIwSt11char_traitsIwEEppEv@@GLIBCXX_3.4.5
_ZNSi6ignoreEv@GLIBCXX_3.4
_ZNSs7_M_copyEPcPKcm@@GLIBCXX_3.4.5
GLIBCXX_3.4.8
GLIBCXX_3.4.13
_ZSt11try_to_lock@@GLIBCXX_3.4.11
_ZNKSt14basic_ofstreamIwSt11char_traitsIwEE7is_openEv@@GLIBCXX_3.4.5
GLIBCXX_3.4.17
GLIBCXX_3.4.4
_ZNKSs15_M_check_lengthEmmPKc@@GLIBCXX_3.4.5
_ZNKSt14basic_ifstreamIwSt11char_traitsIwEE7is_openEv@GLIBCXX_3.4
_ZNSs4_Rep26_M_set_length_and_sharableEm@@GLIBCXX_3.4.5
GLIBCXX_3.4.26
_ZNKSs11_M_disjunctEPKc@GLIBCXX_3.4
[root@dbstandby08 ~]# 

三、升级GCC和make

3.1、再次初始化MySQL8.4.3:


[root@dbstandby08 ~]# /usr/local/mysql8.4.3/bin/mysqld  --defaults-file=/etc/my.cnf --initialize-insecure  --user=mysql --datadir=/data/mysql8.4/data/
/usr/local/mysql8.4.3/bin/mysqld: /lib64/libm.so.6: version `GLIBC_2.27' not found (required by /usr/local/mysql8.4.3/bin/mysqld)
/usr/local/mysql8.4.3/bin/mysqld: /lib64/libc.so.6: version `GLIBC_2.28' not found (required by /usr/local/mysql8.4.3/bin/mysqld)
/usr/local/mysql8.4.3/bin/mysqld: /lib64/libc.so.6: version `GLIBC_2.25' not found (required by /usr/local/mysql-8.4.3-linux-glibc2.28-x86_64/bin/../lib/private/libcrypto.so.3)
/usr/local/mysql8.4.3/bin/mysqld: /lib64/libc.so.6: version `GLIBC_2.28' not found (required by /usr/local/mysql-8.4.3-linux-glibc2.28-x86_64/bin/../lib/private/libprotobuf-lite.so.24.4.0)
[root@dbstandby08 ~]# 
[root@dbstandby08 ~]# 

根据报错提示需要升级到GLIBC_2.28

当前GLIBC版本如下:

[root@oracle ~]# strings /lib64/libc.so.6 |grep ^GLIBC_2.2* 
GLIBC_2.2.5
GLIBC_2.2.6
GLIBC_2.3
GLIBC_2.3.2
GLIBC_2.3.3
GLIBC_2.3.4
GLIBC_2.4
GLIBC_2.5
GLIBC_2.6
GLIBC_2.7
GLIBC_2.8
GLIBC_2.9
GLIBC_2.10
GLIBC_2.11
GLIBC_2.12
GLIBC_2.13
GLIBC_2.14
GLIBC_2.15
GLIBC_2.16
GLIBC_2.17
GLIBC_2.8
GLIBC_2.5
GLIBC_2.9
GLIBC_2.7
GLIBC_2.6
GLIBC_2.11
GLIBC_2.16
GLIBC_2.10
GLIBC_2.17
GLIBC_2.13
GLIBC_2.2.6

3.2、安装 glibc-2.28

###下载并解压 glibc-2.28

$ wget https://ftp.gnu.org/gnu/glibc/glibc-2.28.tar.gz
$ tar -xzvf glibc-2.28.tar.gz
$ cd glibc-2.28
# 创建临时文件
$ mkdir build && cd build
$ ../configure --prefix=/usr --disable-profile --enable-add-ons --with-headers=/usr/include --with-binutils=/usr/bin

提示报错:

configure: error: 
*** These critical programs are missing or too old: make bison compiler python
*** Check the INSTALL file for required versions.

**解决办法:**yum install -y bison

继续编译:

cd /root/glibc-2.28/build
../configure --prefix=/usr --disable-profile --enable-add-ons --with-headers=/usr/include --with-binutils=/usr/bin

提示报错:


configure: error: 
*** These critical programs are missing or too old: make compiler
*** Check the INSTALL file for required versions.

3.3、升级gcc与make:

安装GLIBC所需的依赖 可以在 glibc 目录下的INSTALL中找到, 该版本需要GCC4.9以上及make4.0以上

##升级gcc


1、wget http://ftp.gnu.org/gnu/gcc/gcc-4.9.0/gcc-4.9.0.tar.bz2
2、下载好之后,解压文件:tar -jxvf gcc-4.9.0.tar.bz2
3、解压完成,进入文件目录:cd gcc-4.9.0
4、利用源码包里自带的工具下载所需要的依赖项:./contrib/download_prerequisites //注意路径
5、创建编译输出目录(自定):mkdir build
6、进入输出目录:cd build;
7、生成Makefile:../configure --enable-checking=release --enable-languages=c,c++ --disable-multilib
8、编译:make -j4 //选项 -j4 是多核编译
9、编译完成后,安装:make install 
10、检查一下是否安装成功:gcc -v //查看gcc版本 
[root@dbstandby08 ~]# gcc -v 
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/local/libexec/gcc/x86_64-unknown-linux-gnu/4.9.0/lto-wrapper
Target: x86_64-unknown-linux-gnu
Configured with: ../configure --enable-checking=release --enable-languages=c,c++ --disable-multilib
Thread model: posix
gcc version 4.9.0 (GCC)

gcc升级完成

参考文档: Centos7 升级 Glibc-2.28 https://bubblestudy.info/wiki/index.php?title=Centos7_%E5%8D%87%E7%BA%A7_Glibc-2.28&oldid=1396

##升级 make


$ wget https://ftp.gnu.org/gnu/make/make-4.3.tar.gz
$ tar -xzvf make-4.3.tar.gz 
$ cd make-4.3/
# 安装到指定目录
$ ./configure  --prefix=/usr/local/make
$ make
$ make install
# 创建软链接
$ cd /usr/bin/
$ mv make make.bak # backup
$ ln -sv /usr/local/make/bin/make /usr/bin/make

3.4、继续编译 glibc


# 进入之前的 `~/glibc-2.28/build`目录下
$ cd /root/glibc-2.28/build
$ ../configure --prefix=/usr --disable-profile --enable-add-ons --with-headers=/usr/include --with-binutils=/usr/bin
$ make
$ make install
# 查询
$ strings /lib64/libc.so.6 | grep ^GLIBC

[root@dbstandby08 ~]# strings /lib64/libc.so.6 |grep ^GLIBC_2.2*
GLIBC_2.2.5
GLIBC_2.2.6
GLIBC_2.3
GLIBC_2.3.2
GLIBC_2.3.3
GLIBC_2.3.4
GLIBC_2.4
GLIBC_2.5
GLIBC_2.6
GLIBC_2.7
GLIBC_2.8
GLIBC_2.9
GLIBC_2.10
GLIBC_2.11
GLIBC_2.12
GLIBC_2.13
GLIBC_2.14
GLIBC_2.15
GLIBC_2.16
GLIBC_2.17
GLIBC_2.18
GLIBC_2.22
GLIBC_2.23
GLIBC_2.24
GLIBC_2.25
GLIBC_2.26
GLIBC_2.27
GLIBC_2.28
GLIBC_2.26
GLIBC_2.25
GLIBC_2.28
GLIBC_2.23
GLIBC_2.8
GLIBC_2.5
GLIBC_2.9
GLIBC_2.7
GLIBC_2.6
GLIBC_2.18
GLIBC_2.11
GLIBC_2.16
GLIBC_2.17
GLIBC_2.13
GLIBC_2.2.6

到此时glibc-2.28 编译安装完成

四、初始化库不再报错

[root@dbstandby08 ~]# /usr/local/mysql8.4.3/bin/mysqld  --defaults-file=/etc/my.cnf --initialize-insecure  --user=mysql --datadir=/data/mysql8.4/data/

2024-12-02T21:39:48.018504+08:00 0 [System] [MY-015017] [Server] MySQL Server Initialization - start.
2024-12-02T21:39:48.020025+08:00 0 [Warning] [MY-011070] [Server] 'binlog_format' is deprecated and will be removed in a future release.
2024-12-02T21:39:48.020128+08:00 0 [Note] [MY-010096] [Server] Ignoring --secure-file-priv value as server is running with --initialize(-insecure).
2024-12-02T21:39:48.020169+08:00 0 [Note] [MY-013932] [Server] BuildID[sha1]=05ff7272dc94416d652e71cef79dcabce9677dd2
2024-12-02T21:39:48.020172+08:00 0 [Note] [MY-010949] [Server] Basedir set to /usr/local/mysql-8.4.3-linux-glibc2.28-x86_64/.
2024-12-02T21:39:48.020191+08:00 0 [System] [MY-013169] [Server] /usr/local/mysql8.4.3/bin/mysqld (mysqld 8.4.3) initializing of server in progress as process 20872
2024-12-02T21:39:48.020247+08:00 0 [ERROR] [MY-010338] [Server] Can't find error-message file '/data/mysql8.4/logs/errog/english/errmsg.sys'. Check error-message file location and 'lc-messages-dir' configuration directive.
2024-12-02T21:39:48.024218+08:00 0 [Note] [MY-010458] [Server] --initialize specified on an existing data directory.
2024-12-02T21:39:48.030353+08:00 0 [Note] [MY-010938] [Server] Generating a new UUID: e5f24559-b0b2-11ef-ace6-000c29aa8e91.
2024-12-02T21:39:48.032131+08:00 0 [Note] [MY-012366] [InnoDB] Using Linux native AIO
2024-12-02T21:39:48.032301+08:00 0 [Warning] [MY-013267] [InnoDB] The setting INNODB_UNDO_TABLESPACES is deprecated and is no longer used.  InnoDB always creates 2 undo tablespaces to start with. If you need more, please use CREATE UNDO TABLESPACE.
2024-12-02T21:39:48.032352+08:00 0 [Warning] [MY-013907] [InnoDB] Deprecated configuration parameters innodb_log_file_size and/or innodb_log_files_in_group have been used to compute innodb_redo_log_capacity=4294967296. Please use innodb_redo_log_capacity instead.
2024-12-02T21:39:48.032641+08:00 0 [Note] [MY-010747] [Server] Plugin 'FEDERATED' is disabled.
2024-12-02T21:39:48.032770+08:00 0 [Note] [MY-010747] [Server] Plugin 'ndbcluster' is disabled.
2024-12-02T21:39:48.032801+08:00 0 [Note] [MY-010747] [Server] Plugin 'ndbinfo' is disabled.
2024-12-02T21:39:48.032811+08:00 0 [Note] [MY-010747] [Server] Plugin 'ndb_transid_mysql_connection_map' is disabled.
2024-12-02T21:39:48.032962+08:00 0 [Note] [MY-010747] [Server] Plugin 'mysql_native_password' is disabled.
2024-12-02T21:39:48.034987+08:00 1 [System] [MY-013576] [InnoDB] InnoDB initialization has started.
2024-12-02T21:39:48.035025+08:00 1 [Note] [MY-013546] [InnoDB] Atomic write enabled
2024-12-02T21:39:48.035046+08:00 1 [Note] [MY-012274] [InnoDB] The first innodb_system data file 'ibdata1' did not exist. A new tablespace will be created!
2024-12-02T21:39:48.035077+08:00 1 [Note] [MY-012932] [InnoDB] PUNCH HOLE support available
2024-12-02T21:39:48.035085+08:00 1 [Note] [MY-012944] [InnoDB] Uses event mutexes
2024-12-02T21:39:48.035091+08:00 1 [Note] [MY-012945] [InnoDB] GCC builtin __atomic_thread_fence() is used for memory barrier
2024-12-02T21:39:48.035108+08:00 1 [Note] [MY-012948] [InnoDB] Compressed tables use zlib 1.3.1
2024-12-02T21:39:48.041753+08:00 1 [Note] [MY-012951] [InnoDB] Using hardware accelerated crc32 and polynomial multiplication.
2024-12-02T21:39:48.043229+08:00 1 [Note] [MY-012203] [InnoDB] Directories to scan './;/data/mysql8.4/undolog/'
2024-12-02T21:39:48.043376+08:00 1 [Note] [MY-012204] [InnoDB] Scanning './'
2024-12-02T21:39:48.043444+08:00 1 [Note] [MY-012204] [InnoDB] Scanning '/data/mysql8.4/undolog/'
2024-12-02T21:39:48.043460+08:00 1 [Note] [MY-012208] [InnoDB] Completed space ID check of 0 files.
2024-12-02T21:39:48.045945+08:00 1 [Note] [MY-012955] [InnoDB] Initializing buffer pool, total size = 1.000000G, instances = 4, chunk size =128.000000M 
2024-12-02T21:39:48.045990+08:00 1 [Note] [MY-011872] [InnoDB] Setting NUMA memory policy to MPOL_INTERLEAVE
2024-12-02T21:39:48.221771+08:00 1 [Note] [MY-011874] [InnoDB] Setting NUMA memory policy to MPOL_DEFAULT
2024-12-02T21:39:48.221858+08:00 1 [Note] [MY-012957] [InnoDB] Completed initialization of buffer pool
2024-12-02T21:39:48.236559+08:00 0 [Note] [MY-011952] [InnoDB] If the mysqld execution user is authorized, page cleaner thread priority can be changed. See the man page of setpriority().
2024-12-02T21:39:48.237036+08:00 1 [Note] [MY-012265] [InnoDB] Setting file './ibdata1' size to 1024 MB. Physically writing the file full; Please wait ...
2024-12-02T21:39:48.292540+08:00 1 [Note] [MY-012887] [InnoDB] Setting file ./ibdata1 size to 1024 MB. Progress : 10%
2024-12-02T21:39:48.348930+08:00 1 [Note] [MY-012887] [InnoDB] Setting file ./ibdata1 size to 1024 MB. Progress : 20%
2024-12-02T21:39:48.401756+08:00 1 [Note] [MY-012887] [InnoDB] Setting file ./ibdata1 size to 1024 MB. Progress : 30%
2024-12-02T21:39:48.455631+08:00 1 [Note] [MY-012887] [InnoDB] Setting file ./ibdata1 size to 1024 MB. Progress : 40%
2024-12-02T21:39:48.508070+08:00 1 [Note] [MY-012887] [InnoDB] Setting file ./ibdata1 size to 1024 MB. Progress : 50%
2024-12-02T21:39:48.559609+08:00 1 [Note] [MY-012887] [InnoDB] Setting file ./ibdata1 size to 1024 MB. Progress : 60%
2024-12-02T21:39:48.612934+08:00 1 [Note] [MY-012887] [InnoDB] Setting file ./ibdata1 size to 1024 MB. Progress : 70%
2024-12-02T21:39:48.664750+08:00 1 [Note] [MY-012887] [InnoDB] Setting file ./ibdata1 size to 1024 MB. Progress : 80%
2024-12-02T21:39:48.716138+08:00 1 [Note] [MY-012887] [InnoDB] Setting file ./ibdata1 size to 1024 MB. Progress : 90%
2024-12-02T21:39:48.768356+08:00 1 [Note] [MY-012887] [InnoDB] Setting file ./ibdata1 size to 1024 MB. Progress : 100%
2024-12-02T21:39:48.768569+08:00 1 [Note] [MY-012266] [InnoDB] File './ibdata1' size is now 1024 MB.
2024-12-02T21:39:48.768690+08:00 1 [Note] [MY-013566] [InnoDB] Double write buffer files: 2
2024-12-02T21:39:48.768711+08:00 1 [Note] [MY-013565] [InnoDB] Double write buffer pages per instance: 128
2024-12-02T21:39:48.768959+08:00 1 [Note] [MY-013532] [InnoDB] Using './#ib_16384_0.dblwr' for doublewrite
2024-12-02T21:39:48.773826+08:00 1 [Note] [MY-013532] [InnoDB] Using './#ib_16384_1.dblwr' for doublewrite
2024-12-02T21:39:48.857912+08:00 1 [Note] [MY-012893] [InnoDB] New redo log files created, LSN=8204
2024-12-02T21:39:48.858091+08:00 1 [Note] [MY-013083] [InnoDB] Log background threads are being started...
2024-12-02T21:39:48.967560+08:00 1 [Note] [MY-012896] [InnoDB] Creating UNDO Tablespace /data/mysql8.4/undolog/undo_001
2024-12-02T21:39:48.967611+08:00 1 [Note] [MY-012897] [InnoDB] Setting file /data/mysql8.4/undolog/undo_001 size to 16 MB
2024-12-02T21:39:48.967623+08:00 1 [Note] [MY-012898] [InnoDB] Physically writing the file full
2024-12-02T21:39:48.976362+08:00 1 [Note] [MY-012896] [InnoDB] Creating UNDO Tablespace /data/mysql8.4/undolog/undo_002
2024-12-02T21:39:48.976398+08:00 1 [Note] [MY-012897] [InnoDB] Setting file /data/mysql8.4/undolog/undo_002 size to 16 MB
2024-12-02T21:39:48.976405+08:00 1 [Note] [MY-012898] [InnoDB] Physically writing the file full
2024-12-02T21:39:48.985395+08:00 1 [Note] [MY-012915] [InnoDB] Created 2 undo tablespaces.
2024-12-02T21:39:48.987577+08:00 1 [Note] [MY-011980] [InnoDB] GTID recovery trx_no: 0
2024-12-02T21:39:48.995121+08:00 1 [Note] [MY-013776] [InnoDB] Parallel initialization of rseg complete
2024-12-02T21:39:48.995197+08:00 1 [Note] [MY-013777] [InnoDB] Time taken to initialize rseg using 2 thread: 7 ms.
2024-12-02T21:39:49.000581+08:00 1 [Note] [MY-011920] [InnoDB] Legacy doublewrite buffer not found: creating new
2024-12-02T21:39:49.003272+08:00 0 [Note] [MY-011950] [InnoDB] Resetting invalid page [page id: space=0, page number=143] type 20 to 13 when flushing.
2024-12-02T21:39:49.003309+08:00 0 [Note] [MY-011950] [InnoDB] Resetting invalid page [page id: space=0, page number=142] type 20 to 13 when flushing.
..........
.........
.........
2024-12-02T21:39:49.024877+08:00 1 [Note] [MY-011924] [InnoDB] Legacy atomic write buffer created
2024-12-02T21:39:49.024943+08:00 1 [Note] [MY-012923] [InnoDB] Creating shared tablespace for temporary tables
2024-12-02T21:39:49.025163+08:00 1 [Note] [MY-012265] [InnoDB] Setting file './ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
2024-12-02T21:39:49.030845+08:00 1 [Note] [MY-012266] [InnoDB] File './ibtmp1' size is now 12 MB.
2024-12-02T21:39:49.035812+08:00 1 [Note] [MY-013018] [InnoDB] Created 128 and tracked 128 new rollback segment(s) in the temporary tablespace. 128 are now active.
2024-12-02T21:39:49.040062+08:00 1 [Note] [MY-013018] [InnoDB] Created 128 and tracked 128 new rollback segment(s) in undo tablespace number 1. 128 are now active.
2024-12-02T21:39:49.045035+08:00 1 [Note] [MY-013018] [InnoDB] Created 128 and tracked 128 new rollback segment(s) in undo tablespace number 2. 128 are now active.
2024-12-02T21:39:49.087648+08:00 1 [Note] [MY-012976] [InnoDB] 8.4.3 started; log sequence number 2399392
2024-12-02T21:39:49.088765+08:00 1 [System] [MY-013577] [InnoDB] InnoDB initialization has ended.
2024-12-02T21:39:49.091630+08:00 1 [Note] [MY-011088] [Server] Data dictionary initializing version '80300'.
2024-12-02T21:39:49.219056+08:00 1 [Note] [MY-010007] [Server] Installed data dictionary with version 80300
2024-12-02T21:39:49.288884+08:00 2 [Note] [MY-011019] [Server] Created system views with I_S version 80300.
2024-12-02T21:39:49.289382+08:00 0 [Warning] [MY-013501] [Server] Ignoring --plugin-load[_add] list as the server is running with --initialize(-insecure).
2024-12-02T21:39:49.477781+08:00 0 [Note] [MY-013911] [Server] Crash recovery finished in binlog engine. No attempts to commit, rollback or prepare any transactions.
2024-12-02T21:39:49.477834+08:00 0 [Note] [MY-013911] [Server] Crash recovery finished in InnoDB engine. No attempts to commit, rollback or prepare any transactions.
2024-12-02T21:39:49.482995+08:00 0 [Note] [MY-012487] [InnoDB] DDL log recovery : begin
2024-12-02T21:39:49.483078+08:00 0 [Note] [MY-012488] [InnoDB] DDL log recovery : end
2024-12-02T21:39:50.225497+08:00 0 [Note] [MY-010305] [Server] Auto generated SSL certificates are placed in data directory.
2024-12-02T21:39:50.372324+08:00 0 [Note] [MY-010309] [Server] Auto generated RSA key files through --sha256_password_auto_generate_rsa_keys are placed in data directory.
2024-12-02T21:39:50.372597+08:00 0 [Note] [MY-010308] [Server] Skipping generation of RSA key pair through --caching_sha2_password_auto_generate_rsa_keys as key files are present in data directory.
2024-12-02T21:39:50.375439+08:00 6 [Note] [MY-011061] [Server] Creating the system database.
2024-12-02T21:39:50.375463+08:00 6 [Warning] [MY-010453] [Server] root@localhost is created with an empty password ! Please consider switching off the --initialize-insecure option.
2024-12-02T21:39:50.375593+08:00 6 [Note] [MY-011061] [Server] Creating the system tables.
2024-12-02T21:39:50.484430+08:00 6 [Note] [MY-011061] [Server] Filling in the system tables, part 1.
2024-12-02T21:39:50.493312+08:00 6 [Note] [MY-011061] [Server] Filling in the system tables, part 2.
2024-12-02T21:39:50.747191+08:00 6 [Note] [MY-011061] [Server] Filling in the mysql.help table.
2024-12-02T21:39:50.857823+08:00 6 [Note] [MY-011061] [Server] Creating the system users for internal usage.
2024-12-02T21:39:50.870125+08:00 6 [Note] [MY-011061] [Server] Creating the sys schema.
2024-12-02T21:39:51.121195+08:00 6 [Note] [MY-010456] [Server] Bootstrapping complete
2024-12-02T21:39:51.141013+08:00 0 [Note] [MY-010067] [Server] Giving 0 client threads a chance to die gracefully
2024-12-02T21:39:51.142966+08:00 0 [Note] [MY-012330] [InnoDB] FTS optimize thread exiting.
2024-12-02T21:39:51.187739+08:00 0 [Note] [MY-013072] [InnoDB] Starting shutdown...
2024-12-02T21:39:51.188480+08:00 0 [Note] [MY-011944] [InnoDB] Dumping buffer pool(s) to /data/mysql8.4/data/ib_buffer_pool
2024-12-02T21:39:51.188856+08:00 0 [Note] [MY-011944] [InnoDB] Buffer pool(s) dump completed at 241202 21:39:51
2024-12-02T21:39:51.282123+08:00 0 [Note] [MY-013084] [InnoDB] Log background threads are being closed...
2024-12-02T21:39:51.806406+08:00 0 [Note] [MY-013854] [InnoDB] Bytes written to disk by DBLWR (ON): 31080448
2024-12-02T21:39:51.806699+08:00 0 [Note] [MY-012980] [InnoDB] Shutdown completed; log sequence number 19854813
2024-12-02T21:39:51.807262+08:00 0 [Note] [MY-012255] [InnoDB] Removed temporary tablespace data file: "ibtmp1"
2024-12-02T21:39:51.809539+08:00 0 [System] [MY-015018] [Server] MySQL Server Initialization - end.

整个安装过程演示完成。安装过程还是有点小曲折的,写此文档希望能帮助遇到同样问题的伙伴。