mysql tar 包安装初始化报错 error while loading shared libraries: libaio.so.1 解决

文章
林里克斯

mysql tar 包安装初始化报错 error while loading shared libraries: libaio.so.1 解决


实验平台:CentOS Linux release 7.9.2009 (Core)

MySQL Version:mysql-5.7.34


1.具体报错

$ bin/mysqld --initialize --user=jarbo --basedir=/home/jarbo/mysql --datadir=/data/mysql/data
bin/mysqld: error while loading shared libraries: libaio.so.1: cannot open shared object file: No such file or directory

2.解决报错

#这是缺少 libaio 依赖导致
$ sudo yum install -y libaio

3.再初始化

$ bin/mysqld --initialize --user=jarbo --basedir=/data/mysql --datadir=/data/mysql/data
2021-06-11T08:22:35.151957Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2021-06-11T08:22:36.102107Z 0 [Warning] InnoDB: New log files created, LSN=45790
2021-06-11T08:22:36.306142Z 0 [Warning] InnoDB: Creating foreign key constraint system tables.
2021-06-11T08:22:36.320458Z 0 [Warning] No existing UUID has been found, so we assume that this is the first time that this server has been started. Generating a new UUID: 2d8b5373-ca8e-11eb-a5c2-00163e18dd73.
2021-06-11T08:22:36.322775Z 0 [Warning] Gtid table is not ready to be used. Table 'mysql.gtid_executed' cannot be opened.
2021-06-11T08:22:37.203729Z 0 [Warning] CA certificate ca.pem is self signed.
2021-06-11T08:22:37.813186Z 1 [Note] A temporary password is generated for root@localhost: lcpHacm1qT(d 

Over~

版权协议须知!

本篇文章来源于 Uambiguous ,如本文章侵犯到任何版权问题,请立即告知本站,本站将及时予与删除并致以最深的歉意

1405 0 2021-06-15


分享:
icon_mrgreen.gificon_neutral.gificon_twisted.gificon_arrow.gificon_eek.gificon_smile.gificon_confused.gificon_cool.gificon_evil.gificon_biggrin.gificon_idea.gificon_redface.gificon_razz.gificon_rolleyes.gificon_wink.gificon_cry.gificon_surprised.gificon_lol.gificon_mad.gificon_sad.gificon_exclaim.gificon_question.gif
博主卡片
林里克斯 博主大人
一个致力于Linux的运维平台
运维时间
搭建这个平台,只为分享及记载自己所遇之事和难题。

现在时间 2024-12-28

今日天气
站点统计
  • 文章总数:241篇
  • 分类总数:29个
  • 评论总数:12条
  • 本站总访问量 353113 次

@奥奥

@Wong arrhenius 牛比

@MakerFace 厉害了!