导语: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/

Logo

为开发者提供学习成长、分享交流、生态实践、资源工具等服务,帮助开发者快速成长。

更多推荐