当前位置:网站首页>Offline installation of MariaDB
Offline installation of MariaDB
2022-07-19 15:43:00 【Tgmmmmmmmm】
Offline installation mariadb
List of articles
One 、 download Rpm package
Go to MariaDB Official website Select the desired environment rpm Package download address
MariaDB-client-10.4.24-1.el7.centos.x86_64.rpm
MariaDB-compat-10.4.24-1.el7.centos.x86_64.rpm
MariaDB-common-10.4.24-1.el7.centos.x86_64.rpm
MariaDB-server-10.4.24-1.el7.centos.x86_64.rpm
jemalloc-3.6.0-1.el7.x86_64.rpm
jemalloc-devel-3.6.0-1.el7.x86_64.rpm
galera-4-26.4.4-1.rhel7.el7.centos.x86_64.rpm





Upload to centos7 in

Two 、 Install dependencies in order
yum install rsync nmap lsof perl-DBI nc
rpm -ivh jemalloc-3.6.0-1.el7.x86_64.rpm
rpm -ivh jemalloc-devel-3.6.0-1.el7.x86_64.rpm

galera install
yum install boost-devel.x86_64
# Import signatures and key
rpm --import http://yum.mariadb.org/RPM-GPG-KEY-MariaDB
There is no network here , Use other networks to download , Then import
rpm --import RPM-GPG-KEY-MariaDB
rpm -ivh galera-4-26.4.4-1.rhel7.el7.centos.x86_64.rpm
install mariadb relevant
rpm -ivh MariaDB-common-10.4.24-1.el7.centos.x86_64.rpm MariaDB-compat-10.4.24-1.el7.centos.x86_64.rpm MariaDB-client-10.4.24-1.el7.centos.x86_64.rpm MariaDB-server-10.4.24-1.el7.centos.x86_64.rpm
Report errors , Here, due to the previous wrong installation , You can choose to uninstall and reinstall

rpm -qa | grep mariadb-libs
rpm -ev --nodeps The result of the last command
Then reinstall galera, Install again mariadb
3、 ... and 、 Security configuration
# start-up mariadb
service mariadb start
# After successful startup, run the following command to configure security
mysql_secure_installation

- Enter the current password , There is no password after the initial installation , Directly enter
- Ask if you want to use unix_socket Authentication :n
- by root Set the password :y
- Input root New password for :root
- Confirm input root New password for :root
- Remove anonymous users , This is casual , It is suggested to delete :y
- Deny user remote login , This suggestion turns on :n
- Delete test library , You can keep :n
- Reload permission table :y
Four 、 Configure permissions
# Sign in mysql
mysql -u root -p
# To configure root jurisdiction , Allow any host to connect to mysql
grant all privileges on *.* to [email protected]'%' identified by '111111';
# Refresh the permissions
flush privileges;
5、 ... and 、 adopt navicat test

边栏推荐
- 获取近30天的日期列表
- 网上开户安全么?接着证券开户选择哪个证券
- 浅谈ISP-CCM
- 数字IC-1.11.1 静态时序分析 - 单周期静态时序分析
- What should I pay special attention to when opening an account? Is it safe to open a stock account by mobile phone?
- PAT乙级-B1005 继续(3n+1)猜想(25)【数组】
- 通过群晖虚拟机搭建内网邮件服务器「ExtMail 免费版」
- 初来乍到,多多关照(其实不是初来了^_^,Hello CSDN,我来了)
- 網絡上開戶買基金是否安全呢?剛接觸基金,不懂求指導
- Case study on data management of low code building design company
猜你喜欢
![[dynamic memory management]](/img/53/65653523fa52315ecff5d6881d0382.png)
[dynamic memory management]
![[user article] examples of P4 consolidation practice guide disassemble resolve](/img/43/fd68171e5223d0ec4af55fc208a7ac.png)
[user article] examples of P4 consolidation practice guide disassemble resolve

OSPF comprehensive experiment

离线安装mariadb

Why is Emoji called Emoji

On isp-ccm

箱型图构成及画图——详解

232. 用栈实现队列

Cloudbees CI uses velero for disaster recovery (DR) proof of concept

Discussion on ISP noise model 1
随机推荐
Is online account opening safe? Then choose which securities to open a securities account
DevOps工具链:开放、自由地选择最适合团队和业务需要的工具
[flower carving hands-on] interesting music visualization project (11) --ws2812 magic ribbon
Lambda function and for items Sort (key = lambda y:y[1], reverse = true).
How should I design my blog? How to build a blog with good experience?
【动态内存管理】
【C语言进阶】---常见内存函数
With the right tools, CI achieves twice the result with half the effort
C语言简易版通讯录(静态版)
PostgreSQL installation et démarrage des tutoriels de base sous Linux et Windows
OSPF学习笔记(三)
Impact analysis: rubygems unauthorized access vulnerability (cve-2022-29176)
手机买股票开户哪家券商公司好?哪个更安全
Zhiniu stock -- 08
Code compliance: five reasons why developers use helix QAC
OSPF learning notes (V) -- republish
Reflector uses detailed explanation to convert DLL files into CS file
重庆的哪个银行网点可以买到瑞兹基金产品?
Argument list too long 原因与解决思路
test