当前位置:网站首页>Shell脚本之一键安装mysql
Shell脚本之一键安装mysql
2022-08-03 06:12:00 【Rocky000000】
一、mysql安装脚本简介
一键安装mysql数据库脚本用于centos7环境下安装mysql5.7数据库,安装方式为使用普通用户安装mysql解压包。脚本内容包括,首先检查是否安装mariadb,根据检查结果调用卸载mariadb函数;然后执行安装包解压和数据库初始化;然后mysql添加到用户环境变量;最后启动数据库。适用环境:
- 操作系统:CentOS 7
- mysql数据库:MySQL 5.7.38
二、安装步骤
1、下载安装脚本
从下载链接地址下载安装脚本压缩包,压缩包中包含安装脚本、MySQL 5.7.38的rpm安装包、配置文件模板等信息。
MySQL一键安装脚本
[[email protected] 5.7.38_mysql_rpm]# ./mysql_install.sh
mariadb检查结果:系统未安装mariadb
mysql检查结果:系统已安装mysql,需先卸载
warning: /etc/my.cnf saved as /etc/my.cnf.rpmsave
机器原有MySQL已完成卸载...
边栏推荐
猜你喜欢
随机推荐
Embedding的两种实现方式torch代码
el-table gets the data attribute of a row in the read data table
MySQL忘记密码怎么办
mongodb的shell脚本
Umi 4 快速搭建项目
Nacos下载与安装
spark中的cache和checkpoint
mysql慢查询优化
伦敦银现货市场如何使用多条均线?
torch.nn.modules.activation.ReLU is not a Module subclass
华为设备配置BFD与接口联动(触发与BFD联动的接口物理状态变为Down)
开放域OOD主要数据集、评价指标汇总
Chrome插件开发入门
Laravel 中使用子查询
C语言版本和GCC版本
死锁的成因和对应的解决方案
UniApp scroll-view 事件不生效(@scroll、@scrolltolower、@scrolltoupper ...)
Getting started with el-tabs (tab bar)
【RT_Thread学习笔记】---以太网LAN8720A Lwip ping 通网络
empty() received an invalid combination of arguments - got (tuple, dtype=NoneType, device=NoneType),