日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 运维知识 > 数据库 >内容正文

数据库

MySQL【环境搭建 03】腾讯云 Linux 环境踩坑 loading shared libraries: libnuma.so.1 + quit without updating PID file

發布時間:2024/10/6 数据库 31 豆豆
生活随笔 收集整理的這篇文章主要介紹了 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 directory

2.解決

# 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:e

3.再次報錯

啟動時報錯

/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的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。