• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
leo130-blogs
博客园    首页    新随笔    联系   管理    订阅  订阅

离线安装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
posted @ 2025-05-27 21:35  Sanchez023  阅读(39)  评论(0)    收藏  举报
刷新页面返回顶部
博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3