MariaDB[edit]

Setup[edit]

CentOS7 + MariaDB-10.6.7[edit]

from Source Code[edit]

Rocky Linux 8 + 10.5.22[edit]

# vi /etc/yum.repos.d/mariadb.repo
[mariadb]
name = MariaDB
baseurl = http://yum.mariadb.org/10.5/rhel8-amd64
gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
gpgcheck=1
module_hotfixes=1

# rpm --import https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
# systemctl stop mariadb
# yum remove mariadb-server
# yum remove mariadb-10.3.35
# dnf install MariaDB-server MariaDB-client
# rpm -qa|grep MariaDB
# systemctl start mariadb

Rocky Linux 9 + 11.2[edit]

curl -LsS https://downloads.mariadb.com/MariaDB/mariadb_repo_setup | sudo bash -s -- --mariadb-server-version=11.2
dnf -q module disable mariadb
dnf module reset mariadb
dnf rm mariadb
dnf install MariaDB-server MariaDB-client MariaDB-backup vim
mariadb -V
dnf install php-mysqlnd

Trouble Shooting[edit]

Incorrect definition of table mysql.column_stats: expected column 'histogram' at position 10 to have type longblob, found type varbinary(255)[edit]

Database MariaDB is probably initialized in /var/lib/mysql already, nothing is done.[edit]

Rocky Linux 9 + MariaDB-11.2[edit]

max_open_files to more than 32768 (request: 66655)[edit]

# vi /usr/lib/systemd/system/mariadb.service

 LimitNOFILE=100000 
 LimitMEMLOCK=100000

# systemctl daemon-reload

# systemctl start mariadb


トップ   新規 ページ一覧 検索 最終更新   ヘルプ   最終更新のRSS