centos7下通過RPM離線安裝mariadb10.4.11


目前最新的穩定版mariadb為10.4.11,下載對應的安裝包及依賴包(可到我的百度網盤下載)

boost-program-options-1.53.0-27.el7.x86_64.rpm
galera-4-26.4.3-1.rhel7.el7.centos.x86_64.rpm
MariaDB-client-10.4.11-1.el7.centos.x86_64.rpm
MariaDB-common-10.4.11-1.el7.centos.x86_64.rpm
MariaDB-compat-10.4.11-1.el7.centos.x86_64.rpm
MariaDB-server-10.4.11-1.el7.centos.x86_64.rpm
perl-Compress-Raw-Bzip2-2.061-3.el7.x86_64.rpm
perl-Compress-Raw-Zlib-2.061-4.el7.x86_64.rpm
perl-Data-Dumper-2.145-3.el7.x86_64.rpm
perl-DBI-1.627-4.el7.x86_64.rpm
perl-IO-Compress-2.061-2.el7.noarch.rpm
perl-Net-Daemon-0.48-5.el7.noarch.rpm
perl-PlRPC-0.2020-14.el7.noarch.rpm

查看是否安裝了老版本的mysql
rpm -qa|grep mariadb-libs

如果存在,請先卸載
rpm -e mariadb-libs-5.5.64-1.el7.x86_64 --nodeps

 

將RPM包上傳至centos服務器,CD到RPM包所在路徑執行安裝
yum localinstall *.rpm -y

 

啟動mariadb服務
systemctl start mariadb

設置root帳號密碼
mysqladmin -u root password 123456
登錄數據庫,開啟遠程訪問權限
mysql -uroot -p123456
grant all privileges on *.* to 'root'@'%' identified by '123456' with grant option;
flush privileges;
exit

 

設置mariadb開機啟動
systemctl list-unit-files | grep mariadb
systemctl enable mariadb

 

關閉防火牆
systemctl stop firewalld
systemctl disable firewalld

完成,睡覺!


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM