使用python脚本进行mysql5.7.26的自动化安装部署

项目地址:https://github.com/shaoy001/mysql_install.git

安装过程:
当前脚本功能比较简单,目前只支持mysql5.7以上的版本,且如果想指定具体版本,需要添加参数或者修改脚本的默认参数值,这些不做赘述
安装过程:
mkdir /data
cd /data
git clone https://github.com/shaoy001/mysql_install.git
mv mysql_install/* ./
chmod +x *
python3 mysql_install.py

其它说明:
安装成功后,会自动启动,其它管理命令为:
/data/mysqlbase/mysql3306/bin/mysql.server.3306 [start|stop|restart]
安装之前需装好git和python3,且在安装过程后,可能会缺少python的一些模块,请按提示使用pip3进行安装
另外默认账号已设置为本地账号:
root/12345678!
%账号:
lzy001/12345678!
请自行修改脚本进行设置

猜你喜欢

转载自www.cnblogs.com/seeyog/p/12482294.html