惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Google DeepMind News
Google DeepMind News
博客园 - 聂微东
Vercel News
Vercel News
aimingoo的专栏
aimingoo的专栏
F
Fortinet All Blogs
Microsoft Security Blog
Microsoft Security Blog
MongoDB | Blog
MongoDB | Blog
B
Blog
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
WordPress大学
WordPress大学
Apple Machine Learning Research
Apple Machine Learning Research
阮一峰的网络日志
阮一峰的网络日志
大猫的无限游戏
大猫的无限游戏
GbyAI
GbyAI
Martin Fowler
Martin Fowler
M
MIT News - Artificial intelligence
The GitHub Blog
The GitHub Blog
博客园_首页
博客园 - 叶小钗
腾讯CDC
G
Google Developers Blog
Blog — PlanetScale
Blog — PlanetScale
宝玉的分享
宝玉的分享
D
Docker

Mengke's blog - Mengke's coding journey

年轻不是健康的免死金牌 深圳工作机会,前端 2025 年终总结 Skill 不是 MCP 的替代品:我理解的渐进式披露与选型原则 独立开发者如何开具发票 香港银行卡开户完整指南(2025年9月最新) 招商银行储蓄卡微信动账提醒恢复方法 再谈 MCP - Model Context Protocol(MCP)详解和开发教程 Get Human-Readable "Time Ago" in TypeScript 以「asset-price-mcp」为例,从 0 开发 MCP Server Model Context Protocol (MCP) 快速开始 DeepSeek + Dify 搭建本地知识库 An elegant solution for implementing optional property types using TypeScript 2024 年终总结 Quickly Create a Fullscreen WebView with Autoplay Support for Testing 以数字开头的 ID 在 querySelector 中的处理 String casing utilities in JavaScript Check if a string is a valid color Simple Event-Emitter/PubSub pattern Find which process is running on a certain port and kill it Markdown Code block's basic and advanced syntaxes Common npm commands to use locally Pnpm aliases How to safely rename a case sensitive file/directory in a git repo? A custom hooks to use an async effect A custom hooks to use local storage state 🤩 Mengke'blog 上线的这一年 🗼 五月底去了一趟日本,记录一下我的游记和攻略 网站性能优化:如何高效预加载大型静态资源 闰年之约 - 2024年2月29日
CentOS7 MySQL 数据库安装与卸载
Mengke · 2023-04-08 · via Mengke's blog - Mengke's coding journey

Mengke's blog

Git notes.webp

Published on
/

4 mins read

/

––– views

Share:

安装

第一步,如果机器不支持wget,则安装一下wget

第二步,如果没有MySQL源,则需要下载MySQL源并安装

第三步,正式安装MySQL,如果本身有源,可以跳过前两步。

第四步,配置账户和权限

其他配置

卸载

1. 查询是否安装 MySQL

输出结果表示,安装的MySQL Server,Client都是5.6.51的。

2. 关闭 MySQL

查询 MySQL 运行状态:

关闭 MySQL

3. 查看 MySQL 对应的文件

4. 卸载并删除 MySQL 安装的组键服务

  • 如果是使用 yum 安装的 MySQL,用以下命令进行卸载:
  • 如果是使用 rpm 方式安装的 MySQL,使用 rpm -qa|grep mysql 命令来查看 rpm 方式安装的 mysql,如果查询结果不为空,需要将这些rpm卸载掉。
    • 查看系统中是否以rpm包安装的mysql:
    • 使用 rpm -e 命令将上个命令中包列表一一进行卸载。
    • 然后删除mysql相关的服务。
    • 然后找出OS中分散的mysql文件夹,并删除。
    • 清空mysql相关的的所有目录以及文件