mysql初始化很慢 mysql 初始化常見問題

2021-10-17 12:24:28 字數 728 閱讀 6005

初始化mysql常見錯誤,都是缺少依賴包導致

1.報錯資訊:

-bash: ./scripts/mysql_install_db: /usr/bin/perl: 壞的直譯器: 沒有那個檔案或目錄、

解決方法:yum install perl gcc kernel-devel

2. 報錯資訊:

fatal error: please install the following perl modules before executing ./scripts/mysql_install_db:

data::dumper

解決方法:yum  install -y autoconf

3. 報錯資訊:

installing mysql system tables..../bin/mysqld: error while loading shared libraries: libaio.so.1: cannot open shared object file: no such file or directory

解決方法:yum  install -y libaio-devel

4.報錯資訊

error while loading shared libraries: libnuma.so.1: cannot open shared object file: no such file or directory

解決方法:yum install numactl

mysql初始化很慢 mysql初始化報錯

var log mysql.log 日誌報錯如上圖所示 解決方法 selinux惹的禍 通俗的講就是linux伺服器的安全策略 解決 臨時關閉 setenforce 0 永久關閉需要修改配置檔案,重啟機器 修改 etc selinux config 檔案 將selinux enforcing改為se...

mysql 初始化 MySQL初始化

port 3306 設定mysql的安裝目錄 basedir d php apmw mysql 8.0.17 設定mysql資料庫的資料的存放目錄 datadir d php apmw mysql 8.0.17 data 允許最大連線數 max connections 200 允許連線失敗的次數。m...

mysql 初始化序列 mysql初始化

mysqld nt remove mysql mysqld nt install mysqld initialize insecure user mysql mysqld install mysql root使用者拒絕連線 建立my.ini放在bin下 mysqld 設定3306埠 port 330...