mysql 8.1安装
时间: 2023-08-23 22:17:26 浏览: 95
要安装MySQL 8.1,你可以按照以下步骤进行操作:
1. 首先,你需要下载MySQL 8.1的安装包并进行安装。安装完成后,你可以使用以下命令启动MySQL服务:\[1\]
```
net start mysql
```
2. 如果你需要停止MySQL服务,可以使用以下命令:\[1\]
```
net stop mysql
```
3. 如果你需要卸载MySQL服务,可以使用以下命令:\[1\]
```
sc delete MySQL/mysqld -remove
```
4. 在安装之前,你可以检查/etc/yum.repos.d/目录下是否生成了mysql-community.repo和mysql-community-source.repo两个repo文件。这一步是可选的。\[2\]
5. 在安装完成后,你可以使用以下命令将MySQL的安装路径修改为/application/mysql:\[3\]
```
sed -i 's#/usr/local/mysql#/application/mysql#g' /application/mysql/bin/mysqld_safe /etc/init.d/mysqld
```
请注意,以上步骤仅适用于MySQL 8.1的安装。如果你使用的是其他版本的MySQL,请参考相应的文档或指南进行安装。
#### 引用[.reference_title]
- *1* [MySQL8安装详细步骤](https://blog.csdn.net/m0_66557301/article/details/126584678)[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^v91^control,239^v3^insert_chatgpt"}} ] [.reference_item]
- *2* [centos 8.1 安装mysql并远程连接](https://blog.csdn.net/m0_61841735/article/details/129645847)[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^v91^control,239^v3^insert_chatgpt"}} ] [.reference_item]
- *3* [mysql8安装](https://blog.csdn.net/weixin_28795975/article/details/113270549)[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^v91^control,239^v3^insert_chatgpt"}} ] [.reference_item]
[ .reference_list ]
阅读全文