mariadb

root@localhost system\]# yum install -y mariadb-server 已加载插件:fastestmirror, langpacks Loading mirror speeds from cached hostfile \* base: ftp.sjtu.edu.cn \* extras: ftp.sjtu.edu.cn \* updates: ftp.sjtu.edu.cn 正在解决依赖关系 --\> 正在检查事务 ---\> 软件包 mariadb-server.x86_64.1.5.5.68-1.el7 将被 安装 --\> 正在处理依赖关系 mariadb-libs(x86-64) = 1:5.5.68-1.el7,它被软件包 1:mariadb-server-5.5.68-1.el7.x86_64 需要 --\> 正在处理依赖关系 mariadb(x86-64) = 1:5.5.68-1.el7,它被软件包 1:mariadb-server-5.5.68-1.el7.x86_64 需要 --\> 正在处理依赖关系 perl-DBI,它被软件包 1:mariadb-server-5.5.68-1.el7.x86_64 需要 --\> 正在处理依赖关系 perl-DBD-MySQL,它被软件包 1:mariadb-server-5.5.68-1.el7.x86_64 需要 --\> 正在处理依赖关系 perl(DBI),它被软件包 1:mariadb-server-5.5.68-1.el7.x86_64 需要 --\> 正在检查事务 ---\> 软件包 mariadb.x86_64.1.5.5.68-1.el7 将被 安装 ---\> 软件包 mariadb-libs.x86_64.1.5.5.56-2.el7 将被 升级 ---\> 软件包 mariadb-libs.x86_64.1.5.5.68-1.el7 将被 更新 ---\> 软件包 perl-DBD-MySQL.x86_64.0.4.023-6.el7 将被 安装 ---\> 软件包 perl-DBI.x86_64.0.1.627-4.el7 将被 安装 --\> 正在处理依赖关系 perl(RPC::PlServer) \>= 0.2001,它被软件包 perl-DBI-1.627-4.el7.x86_64 需要 --\> 正在处理依赖关系 perl(RPC::PlClient) \>= 0.2000,它被软件包 perl-DBI-1.627-4.el7.x86_64 需要 --\> 正在检查事务 ---\> 软件包 perl-PlRPC.noarch.0.0.2020-14.el7 将被 安装 --\> 正在处理依赖关系 perl(Net::Daemon) \>= 0.13,它被软件包 perl-PlRPC-0.2020-14.el7.noarch 需要 --\> 正在处理依赖关系 perl(Net::Daemon::Test),它被软件包 perl-PlRPC-0.2020-14.el7.noarch 需要 --\> 正在处理依赖关系 perl(Net::Daemon::Log),它被软件包 perl-PlRPC-0.2020-14.el7.noarch 需要 --\> 正在处理依赖关系 perl(Compress::Zlib),它被软件包 perl-PlRPC-0.2020-14.el7.noarch 需要 --\> 正在检查事务 ---\> 软件包 perl-IO-Compress.noarch.0.2.061-2.el7 将被 安装 --\> 正在处理依赖关系 perl(Compress::Raw::Zlib) \>= 2.061,它被软件包 perl-IO-Compress-2.061-2.el7.noarch 需要 --\> 正在处理依赖关系 perl(Compress::Raw::Bzip2) \>= 2.061,它被软件包 perl-IO-Compress-2.061-2.el7.noarch 需要 ---\> 软件包 perl-Net-Daemon.noarch.0.0.48-5.el7 将被 安装 --\> 正在检查事务 ---\> 软件包 perl-Compress-Raw-Bzip2.x86_64.0.2.061-3.el7 将被 安装 ---\> 软件包 perl-Compress-Raw-Zlib.x86_64.1.2.061-4.el7 将被 安装 --\> 解决依赖关系完成 依赖关系解决 ================================================================================ Package 架构 版本 源 大小 ================================================================================ 正在安装: mariadb-server x86_64 1:5.5.68-1.el7 base 11 M 为依赖而安装: mariadb x86_64 1:5.5.68-1.el7 base 8.8 M perl-Compress-Raw-Bzip2 x86_64 2.061-3.el7 base 32 k perl-Compress-Raw-Zlib x86_64 1:2.061-4.el7 base 57 k perl-DBD-MySQL x86_64 4.023-6.el7 base 140 k perl-DBI x86_64 1.627-4.el7 base 802 k perl-IO-Compress noarch 2.061-2.el7 base 260 k perl-Net-Daemon noarch 0.48-5.el7 base 51 k perl-PlRPC noarch 0.2020-14.el7 base 36 k 为依赖而更新: mariadb-libs x86_64 1:5.5.68-1.el7 base 760 k 事务概要 ================================================================================ 安装 1 软件包 (+8 依赖软件包) 升级 ( 1 依赖软件包) 总计:22 M 总下载量:21 M Downloading packages: 警告:/var/cache/yum/x86_64/7/base/packages/perl-Compress-Raw-Bzip2-2.061-3.el7.x86_64.rpm: 头V3 RSA/SHA256 Signature, 密钥 ID f4a80eb5: NOKEY perl-Compress-Raw-Bzip2-2.061-3.el7.x86_64.rpm 的公钥尚未安装 (1/9): perl-Compress-Raw-Bzip2-2.061-3.el7.x86_64.rpm \| 32 kB 00:00 (2/9): perl-DBD-MySQL-4.023-6.el7.x86_64.rpm \| 140 kB 00:01 (3/9): perl-Compress-Raw-Zlib-2.061-4.el7.x86_64.rpm \| 57 kB 00:02 (4/9): perl-IO-Compress-2.061-2.el7.noarch.rpm \| 260 kB 00:00 (5/9): perl-PlRPC-0.2020-14.el7.noarch.rpm \| 36 kB 00:00 (6/9): perl-Net-Daemon-0.48-5.el7.noarch.rpm \| 51 kB 00:00 (7/9): perl-DBI-1.627-4.el7.x86_64.rpm \| 802 kB 00:03 (8/9): mariadb-5.5.68-1.el7.x86_64.rpm \| 8.8 MB 00:07 (9/9): mariadb-server-5.5.68-1.el7.x86_64.rpm \| 11 MB 00:34 -------------------------------------------------------------------------------- 总计 630 kB/s \| 21 MB 00:34 从 file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7 检索密钥 导入 GPG key 0xF4A80EB5: 用户ID : "CentOS-7 Key (CentOS 7 Official Signing Key) \" 指纹 : 6341 ab27 53d7 8a78 a7c2 7bb1 24c6 a8a7 f4a8 0eb5 软件包 : centos-release-7-4.1708.el7.centos.x86_64 (@anaconda) 来自 : /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7 Running transaction check Running transaction test Transaction test succeeded Running transaction 警告:RPM 数据库已被非 yum 程序修改。 正在更新 : 1:mariadb-libs-5.5.68-1.el7.x86_64 1/11 正在安装 : 1:mariadb-5.5.68-1.el7.x86_64 2/11 正在安装 : 1:perl-Compress-Raw-Zlib-2.061-4.el7.x86_64 3/11 正在安装 : perl-Net-Daemon-0.48-5.el7.noarch 4/11 正在安装 : perl-Compress-Raw-Bzip2-2.061-3.el7.x86_64 5/11 正在安装 : perl-IO-Compress-2.061-2.el7.noarch 6/11 正在安装 : perl-PlRPC-0.2020-14.el7.noarch 7/11 正在安装 : perl-DBI-1.627-4.el7.x86_64 8/11 正在安装 : perl-DBD-MySQL-4.023-6.el7.x86_64 9/11 正在安装 : 1:mariadb-server-5.5.68-1.el7.x86_64 10/11 清理 : 1:mariadb-libs-5.5.56-2.el7.x86_64 11/11 验证中 : perl-Compress-Raw-Bzip2-2.061-3.el7.x86_64 1/11 验证中 : perl-Net-Daemon-0.48-5.el7.noarch 2/11 验证中 : 1:mariadb-libs-5.5.68-1.el7.x86_64 3/11 验证中 : 1:mariadb-server-5.5.68-1.el7.x86_64 4/11 验证中 : perl-DBD-MySQL-4.023-6.el7.x86_64 5/11 验证中 : 1:mariadb-5.5.68-1.el7.x86_64 6/11 验证中 : 1:perl-Compress-Raw-Zlib-2.061-4.el7.x86_64 7/11 验证中 : perl-DBI-1.627-4.el7.x86_64 8/11 验证中 : perl-IO-Compress-2.061-2.el7.noarch 9/11 验证中 : perl-PlRPC-0.2020-14.el7.noarch 10/11 验证中 : 1:mariadb-libs-5.5.56-2.el7.x86_64 11/11 已安装: mariadb-server.x86_64 1:5.5.68-1.el7 作为依赖被安装: mariadb.x86_64 1:5.5.68-1.el7 perl-Compress-Raw-Bzip2.x86_64 0:2.061-3.el7 perl-Compress-Raw-Zlib.x86_64 1:2.061-4.el7 perl-DBD-MySQL.x86_64 0:4.023-6.el7 perl-DBI.x86_64 0:1.627-4.el7 perl-IO-Compress.noarch 0:2.061-2.el7 perl-Net-Daemon.noarch 0:0.48-5.el7 perl-PlRPC.noarch 0:0.2020-14.el7 作为依赖被升级: mariadb-libs.x86_64 1:5.5.68-1.el7 完毕! 2. \[root@localhost system\]# mysql_secure_installation NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MariaDB SERVERS IN PRODUCTION USE! PLEASE READ EACH STEP CAREFULLY! In order to log into MariaDB to secure it, we'll need the current password for the root user. If you've just installed MariaDB, and you haven't set the root password yet, the password will be blank, so you should just press enter here. Enter current password for root (enter for none): OK, successfully used password, moving on... Setting the root password ensures that nobody can log into the MariaDB root user without the proper authorisation. Set root password? \[Y/n\] y New password: Re-enter new password: Password updated successfully! Reloading privilege tables.. ... Success! By default, a MariaDB installation has an anonymous user, allowing anyone to log into MariaDB without having to have a user account created for them. This is intended only for testing, and to make the installation go a bit smoother. You should remove them before moving into a production environment. Remove anonymous users? \[Y/n\] y ... Success! Normally, root should only be allowed to connect from 'localhost'. This ensures that someone cannot guess at the root password from the network. Disallow root login remotely? \[Y/n\] n ... skipping. By default, MariaDB comes with a database named 'test' that anyone can access. This is also intended only for testing, and should be removed before moving into a production environment. Remove test database and access to it? \[Y/n\] n ... skipping. Reloading the privilege tables will ensure that all changes made so far will take effect immediately. Reload privilege tables now? \[Y/n\] y ... Success! Cleaning up... All done! If you've completed all of the above steps, your MariaDB installation should now be secure. Thanks for using MariaDB! 3. MariaDB \[test\]\> MariaDB \[test\]\> GRANT ALL PRIVILEGES ON \*.\* TO 'root'@'%'IDENTIFIED BY 'root' WITH GRANT OPTION; Query OK, 0 rows affected (0.00 sec) 参考网址信息 [https://blog.csdn.net/zzddada/article/details/108487386](https://blog.csdn.net/zzddada/article/details/108487386 "https://blog.csdn.net/zzddada/article/details/108487386")

相关推荐
黄俊懿8 分钟前
复合索引设计指南:最左前缀 & 字段排座次
数据库·sql·mysql·adb·性能优化·dba·db
桃花键神23 分钟前
【2026精品项目】基于SpringBoot3+Vue3的旧物置换系统(包含源码+项目文档+SQL脚本+部署教程)
数据库·spring boot·sql·vue
.柒宇.1 小时前
Redis高频面试题与跳跃表原理详解
数据库·redis·缓存
Bryce学亮1 小时前
股票数据成本分析工具
数据库
思麟呀1 小时前
MySQL表的约束
数据库·mysql
步十人1 小时前
【FastAPI】ORM-02.使用 ORM 高效处理数据库逻辑
服务器·数据库·fastapi
Apache IoTDB1 小时前
时序数据库 IoTDB + 时序智能服务平台 TimechoAI 亮相中国核电信息技术高峰论坛
数据库·时序数据库·iotdb
未若君雅裁1 小时前
Redis 和 MySQL 双写一致性:延迟双删、读写锁、MQ、Canal 怎么选?
数据库·redis·面试
罗超驿2 小时前
9.深度剖析MySQL约束的工程设计:自增主键的分布式局限、外键约束的权衡,与CHECK的版本适配实践
数据库·mysql
Kiyra2 小时前
Agent 的记忆不是存数据库就行:上下文预算与轻量记忆的设计实战
数据库·人工智能·后端·面试·职场和发展·哈希算法