参考文档:https://dev.MysqL.com/doc/MysqL-apt-repo-quick-guide/en/
首先,下载MysqL APT 仓库文件, https://dev.mysql.com/downloads/repo/apt/. 上有最新版本。
wget https://dev.MysqL.com/get/MysqL-apt-config_0.8.22-1_all.deb
把仓库文件合并入本机仓库:
dpkg -i MysqL-apt-config_0.8.22-1_all.deb
更新数据源:
apt-get update
安装MysqL:
apt-get install MysqL-server
安装完后即自动运行,可查看当前状态:
systemctl status MysqL
● MysqL.service - MysqL Community Server Loaded: loaded (/lib/systemd/system/MysqL.service; enabled; vendor preset: enabled) Active: active (running) since Sat 2022-04-30 19:57:25 CST; 1min 19s ago Docs: man:MysqLd(8) http://dev.MysqL.com/doc/refman/en/using-systemd.html Main PID: 4263 (MysqLd) Status: "Server is operational" Tasks: 37 (limit: 2242) Memory: 366.4M cpu: 644ms CGroup: /system.slice/MysqL.service └─4263 /usr/sbin/MysqLd Apr 30 19:57:24 iZrv8fu4iejmpkZ systemd[1]: Starting MysqL Community Server... Apr 30 19:57:25 iZrv8fu4iejmpkZ systemd[1]: Started MysqL Community Server.
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。