MySQL【环境搭建 03】腾讯云 Linux 环境踩坑 loading shared libraries: libnuma.so.1 + quit without updating PID file
生活随笔
收集整理的這篇文章主要介紹了
MySQL【环境搭建 03】腾讯云 Linux 环境踩坑 loading shared libraries: libnuma.so.1 + quit without updating PID file
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
MySQL安裝文件為 mysql-5.7.28-linux-glibc2.12-x86_64.tar.gz,阿里云和騰訊云的Linux環境不完全相同,安裝時出現了意想不到的問題,這種問題不大,搜索一些就能解決,這里記錄一下。
1.報錯
輸入初始化命令后報錯
cd /usr/local/mysql bin/mysqld --initialize --user=mysql --basedir=/usr/local/mysql --datadir=/data/mysql/data error while loading shared libraries: libnuma.so.1: cannot open shared object file: No such file or directory2.解決
# yum 安裝的libnuma.so.1,但安裝時默認安裝的是32的,但db2需要的是64位的 yum remove libnuma.so.1 yum -y install numactl.x86_64再次初始化后成功
cd /usr/local/mysql bin/mysqld --initialize --user=mysql --basedir=/usr/local/mysql --datadir=/data/mysql/data2021-03-30T10:18:25.212584Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details). 2021-03-30T10:18:26.237192Z 0 [Warning] InnoDB: New log files created, LSN=45790 2021-03-30T10:18:26.356956Z 0 [Warning] InnoDB: Creating foreign key constraint system tables. 2021-03-30T10:18:26.459079Z 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: 43fe917f-9141-11eb-a515-00163e3019ff. 2021-03-30T10:18:26.460035Z 0 [Warning] Gtid table is not ready to be used. Table 'mysql.gtid_executed' cannot be opened. 2021-03-30T10:18:27.546222Z 0 [Warning] CA certificate ca.pem is self signed. 2021-03-30T10:18:28.087215Z 1 [Note] A temporary password is generated for root@localhost: +oUisNmwk6:e3.再次報錯
啟動時報錯
/etc/init.d/mysqld start Starting MySQL.Logging to '/data/mysql/data/tcloud.err'. .. ERROR! The server quit without updating PID file (/data/mysql/data/tcloud.pid).查看log文檔,發現是3306被占用,殺掉占用進程后啟動成功,遇到問題看日志,問題可能跟我不同。
總結
以上是生活随笔為你收集整理的MySQL【环境搭建 03】腾讯云 Linux 环境踩坑 loading shared libraries: libnuma.so.1 + quit without updating PID file的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 【Windows部署】Telegraf
- 下一篇: MySQL【问题记录 01】报错 170