mkdir build cd build/ cmake -DWITH_READLINE=true -DWITHOUT_TOKUDB_STORAGE_ENGINE=true -DHAVE_SYSTEMD=true -DOPENSSL_ROOT_DIR=/usr/local/ssl .. make systemctl stop mariadb make install systemctl start mariadb ps ax|grep maria ps ax|grep mysql
# 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
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
# cd /var/log # ln -s mariadb mysql # mariadb-upgrade -u root -p # systemctl restart mariadb
# vi /usr/lib/systemd/system/mariadb.service
LimitNOFILE=100000 LimitMEMLOCK=100000
# systemctl daemon-reload
# systemctl start mariadb