导语:ubuntu22.04 强制安装mysql5.7.40。安装完安装其他apt依赖的时候 可能会造成mysql出问题。最好还是离线环境用。
apt update
apt-get install zip -y
cd /var/
rm -rf debs
wget -c http://172.16.40.245:82/debs.zip
unzip debs.zip
rm -rf debs.zip
cat <<-EOF >/etc/apt/sources.list
deb [trusted=yes] file:///var/ debs/
EOF
cat > /tmp/mysql.preseed <<EOF
mysql-community-server mysql-community-server/root-pass password deepwise
mysql-community-server mysql-community-server/re-root-pass password deepwise
EOF
debconf-set-selections /tmp/mysql.preseed
debconf-show mysql-community-server
apt update
apt-get install mysql-server -y
对应的debs依赖
链接: https://pan.baidu.com/s/1ZQtlb2q6fUhi23Zb35NFGg?pwd=09s6 提取码: 09s6
–来自百度网盘超级会员v6的分享
http://www.mobange.com/ask/db/66666.html
http://www.isimble.com/2018/03/30/docker-install-mysql-server-no-passwd/
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)