centos mysql 安装
时间: 2023-08-22 19:09:51 浏览: 110
centos下mysql安装
要在CentOS中安装MySQL,你可以按照以下步骤进行操作:
1. 下载并安装MySQL官方的Yum Repository。你可以使用以下命令下载安装包:
```
wget -i -c http://dev.mysql.com/get/mysql57-community-release-el7-10.noarch.rpm
```
2. 安装MySQL。使用以下命令安装MySQL:
```
yum -y install mysql-community-server
```
3. 查看MySQL服务状态。使用以下命令查看MySQL服务的状态:
```
systemctl status mysqld
```
如果你之前安装了系统自带的MariaDB,你可能需要先卸载它。可以使用以下命令卸载系统自带的MariaDB:
```
rpm -e postfix-2.10.1-7.el7.x86_64
rpm -e mariadb-libs-5.5.60-1.el7_5.x86_64
```
请注意,这是在CentOS上安装MySQL的一种方法。你也可以选择使用rpm包进行安装。详情请参考引用和引用中的内容。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *3* [Centos安装MySQL](https://blog.csdn.net/qq_36713450/article/details/123315752)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
- *2* [Centos安装MySQL(完整版)](https://blog.csdn.net/weixin_42294130/article/details/123720781)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文