问题描述
我正在使用打包程序在 Ubuntu 虚拟机上安装 MysqL 5.6。要安装它,我使用以下脚本。
#!/bin/bash
sudo add-apt-repository 'deb http://kr.archive.ubuntu.com/ubuntu xenial main' -y
sudo add-apt-repository 'deb http://archive.ubuntu.com/ubuntu trusty universe' -y
sudo apt-get update -y
sudo apt-get install MysqL-server-5.6 -y
systemctl restart MysqL
但是,安装程序一直提示输入密码。有没有办法在脚本中传递密码,因为它安装在 VM 中?我被困在这种情况下。
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)