-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
yk
committed
Nov 30, 2023
1 parent
5abb170
commit cd10b61
Showing
1 changed file
with
31 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
--- | ||
title: 'Mysql_1' | ||
date: 2023-11-30T15:42:23+08:00 | ||
lastmod: | ||
tags: [] | ||
series: [mysql] | ||
categories: [study notes] | ||
weight: 1 | ||
--- | ||
|
||
## 安装 | ||
|
||
本人 m1 的 mac,[下载地址](https://downloads.mysql.com/archives/community/),选择合适自己的版本下载安装。 | ||
|
||
> 据说 mysql5.x 的版本比较稳定,比如 5.7,很多公司在用;那我现在的公司使用的是 8.x 的版本,而且有 arm 版。 | ||
![](https://cdn.jsdelivr.net/gh/yokiizx/picgo@main/img/202311301709918.png) | ||
|
||
```shell | ||
# 基本命令 | ||
sudo /usr/local/mysql/support-files/mysql.server start | ||
sudo /usr/local/mysql/support-files/mysql.server restart | ||
sudo /usr/local/mysql/support-files/mysql.server stop | ||
``` | ||
|
||
环境配置,我本地使用的 `.zshrc`: | ||
|
||
```shell | ||
export MYSQL_HOME=/usr/local/mysql | ||
export PATH=${PATH}:${MYSQL_HOME}/support-files # 之前配置了很多,拼进去${MYSQL_HOME}/support-files即可 | ||
``` |