离线安装mysql community server.
1.prepare outline installer firstly.
like :mysql-server_8.4.5-1ubuntu24.04_amd64.deb-bundle
or you can download from office website:
https://dev.mysql.com/downloads/mysql
and choose the version you need.
2.some basic steps.
sudo apt update
sudo apt install libaio1 libmecab2 libnuma1
3.extract your deb file.
tar -xvf mysql-server_8.4.5-1ubuntu24.04_amd64.deb-bundle.tar
4.install the files in order.
sudo dpkg -i mysql-common_*.deb
sudo dpkg -i mysql-community-client-plugins_*.deb
sudo dpkg -i mysql-community-client-core_*.deb
sudo dpkg -i mysql-community-client_*.deb
sudo dpkg -i mysql-client_*.deb
sudo dpkg -i mysql-community-server-core_*.deb
sudo dpkg -i mysql-community-server_*.deb
sudo dpkg -i mysql-server_*.deb
when you get trouble in installing these files, try to fix it with:
sudo apt --fix-broken install
5.start the mysql serivce
sudo systemctl start mysql
sudo systemctl enable mysql
6.check your mysql service start or not
systemctl status mysql
浙公网安备 33010602011771号