centos_mysql 安装脚本
程序员文章站
2023-02-05 18:07:11
#!/bin/bash env echo "Download msyql5.7 rpm..." sudo yum install wget wget -i -c http://dev.mysql.com/get/mysql57-community-release-el7-10.noarch.rpm ... ......
#!/bin/bash env
echo "download msyql5.7 rpm..."
sudo yum install wget
wget -i -c http://dev.mysql.com/get/mysql57-community-release-el7-10.noarch.rpm
echo "start to install mysql5.7..."
sudo yum -y install mysql57-community-release-el7-10.noarch.rpm
sudo yum -y install mysql-community-server
echo "启动mysql 服务"
sudo systemctl start mysqld.service
echo "msyql 临时密码:"
grep 'password' /var/log/mysqld.log |head -n 1 |grep -oe "localhost:(.+)$" | awk -f ':' '{print $2}'
echo "请修改成自己需要的密码"
上一篇: iOS核心动画高级技巧 - 6
下一篇: QT获取linux下的当年用户名
推荐阅读
-
Android开发利器之pidcat安装方式
-
CentOS7下mysql 8.0.16 安装配置方法图文教程
-
win10下mysql 8.0.16 winx64安装配置方法图文教程
-
mysql 8.0.16 压缩包安装配置方法图文教程
-
Windows10 mysql 8.0.12 非安装版配置启动方法
-
Windows10下mysql 8.0.16 安装配置方法图文教程
-
mysql 8.0.16 winx64.zip安装配置方法图文教程
-
C#中实现查找mysql的安装路径
-
windows下mysql 8.0.16 安装配置方法图文教程
-
win10下mysql 8.0.16 winx64安装图文最新教程