#!/bin/bash env echo "Download msyql5.7 rpm..." sudo yum install wget wget -i -c Http://dev.Mysql.com/get/mysql57-commUn
#!/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 "请修改成自己需要的密码"
--结束END--
本文标题: centos_mysql 安装脚本
本文链接: https://lsjlt.com/news/2970.html(转载时请注明来源链接)
有问题或投稿请发送至: 邮箱/279061341@qq.com QQ/279061341
2024-10-23
2024-10-22
2024-10-22
2024-10-22
2024-10-22
2024-10-22
2024-10-22
2024-10-22
2024-10-22
2024-10-22
回答
回答
回答
回答
回答
回答
回答
回答
回答
回答
0