1.官网下载
添加链接描述点击DOWNLOADS
2.选择MySQL Community Server
3.下载对应版本
4.双击
5.一路傻瓜式
6.配置![在这里插入图片描述](https://i-blog.csdnimg.cn/blog_migrate/1dd85f5e55e056338ea3e37175a3695f.jpeg)
添加2行
export PATH=$PATH:/usr/local/mysql/bin
export PATH=$PATH:/usr/local/mysql/support-files
是环境变量生效
source ~/.bash_profile
添加链接描述点击DOWNLOADS
添加2行
export PATH=$PATH:/usr/local/mysql/bin
export PATH=$PATH:/usr/local/mysql/support-files
是环境变量生效
source ~/.bash_profile