mysql8.0.34安装教程
时间: 2023-08-04 19:10:03 浏览: 354
安装MySQL 8.0.34的教程如下:
1. 首先,使用以下命令初始化MySQL:
```
mysqld --initialize
```
2. 接下来,将MySQL文件夹的所有权更改为mysql用户:
```
chown mysql:mysql /var/lib/mysql -R
```
3. 启动MySQL服务:
```
systemctl start mysqld.service
```
4. 设置MySQL开机自启动:
```
systemctl enable mysqld
```
5. 如果在连接MySQL时出现错误"plugin caching_sha2_password could not be loaded",可能是因为MySQL新版默认使用了caching_sha2_password身份验证插件,而旧版使用mysql_native_password。您可以尝试切换回旧版插件来解决此问题。\[2\]
6. 如果您需要解压MySQL压缩包,可以使用以下命令:
```
tar -xvf /home/sh/mysql-8.0.34.tar -C /usr/local/mysql
```
这将把压缩包解压到之前创建的mysql文件夹下。\[3\]
请按照上述步骤进行MySQL 8.0.34的安装。
#### 引用[.reference_title]
- *1* *3* [Centos7下安装Mysql8.0----超简单](https://blog.csdn.net/m0_53027469/article/details/127649415)[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^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item]
- *2* [Mysql超详细安装配置教程(保姆级)](https://blog.csdn.net/weixin_47406082/article/details/131867849)[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^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item]
[ .reference_list ]
阅读全文