当前位置:网站首页>Install MySQL on MAC
Install MySQL on MAC
2022-04-23 16:09:00 【Learning is boundless, happy to make a boat】
install Mysql
Installation method using visual interface .
1、 Sign in Mysql Its official website ,mysql Download the official website

2、 download “ Community version of Mysql”, Click on Mysql Community(GPL) Downloads.

3、 And then choose Mysql Community Server.

4、 Next, go to the present page , Here is a link to this download , We choose “DMG Format ” Download link for . Be careful : Be sure to choose macOS System .

5、 Downloaded dmg After installing the package in format , The next installation is relatively simple , It should be noted that :
(1) Be sure to choose Use Legacy Password Encryption.( remarks : Because I've chosen... Before Use Strong Password Encryption, But sometimes there will be problems running the project )

(2) Be sure to enter the password , This password is also login mysql Password , It's very important . remarks : If it is 8.23 After version Mysql, Then when entering the password, you need to enter at least 8 position .

6、 For the rest of the installation, just click continue .
7、 see Mysql Is the installation successful , Need to click “MAC System preferences in ”, And then click Mysql Icon
Get into Mysql After the interface , If it's two green circular icons , shows Mysql It has been installed successfully .

install Workbench
Recommend a visual operation software Workbench( Can not be installed )
To configure Mysql
If you need to input... In the terminal Mysql command , Then the following configuration is required .
1、 Open file :vi ~/.bash_profile
2、 Add the statement :PATH=$PATH:/usr/local/mysql/bin
3、 Make the configured statement effective :source ~/.bash_profile

If the configuration is successful , So enter the command :mysql -uroot -p, The operation effect is as follows :

At this point, enter the login password and you can use .
If the above running picture cannot appear , It indicates that the configuration of the environment failed .
To configure Mysql Pit encountered by environment variable
We were in bash Configuration in environment Mysql, So when the computer restarts or shuts down, it may appear mysql In case of command failure . This is also a pit I encountered , The solution is as follows :
stay ~/.zshrc At the end of the document , Add a row :
source ~/.bash_profile
1、 without ~/.zshrc file , Then you need to execute the command touch ~/.zshrc; conversely , If there is zsh file , Then you can skip this step , Go straight to 2 Step .
2、 perform vi ~/.zshrc command , Then add source ~/.bash_profile that will do ; As shown in the figure below :

3、 Then you can solve the problem after the computer restarts mysql The problem of command failure .
版权声明
本文为[Learning is boundless, happy to make a boat]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204231403594138.html
边栏推荐
- JSP learning 3
- Grbl learning (II)
- Intersection, union and difference sets of spark operators
- JS regular determines whether the port path of the domain name or IP is correct
- Spark 算子之交集、并集、差集
- 299. Number guessing game
- Day (8) of picking up matlab
- Passing header request header information between services through feign
- dlopen/dlsym/dlclose的简单用法
- How to quickly batch create text documents?
猜你喜欢

5分钟,把你的Excel变成在线数据库,神奇的魔方网表excel数据库

【现代电子装联期末复习要点】

实现缺省页面

Coalesce and repartition of spark operators

Spark 算子之coalesce与repartition

Tencent offer has been taken. Don't miss the 99 algorithm high-frequency interview questions. 80% of them are lost in the algorithm

Unity Shader学习

Spark 算子之filter使用

Spark 算子之groupBy使用

matplotlib教程05---操作图像
随机推荐
一文掌握vscode远程gdb调试
homwbrew安装、常用命令以及安装路径
Es common query, sorting and aggregation statements
面试题 17.10. 主要元素
5分钟,把你的Excel变成在线数据库,神奇的魔方网表excel数据库
Spark 算子之partitionBy
Interview question 17.10 Main elements
捡起MATLAB的第(3)天
How can poor areas without networks have money to build networks?
Sortby use of spark operator
捡起MATLAB的第(4)天
【自娱自乐】构造笔记 week 2
Using JSON server to create server requests locally
VIM uses vundle to install the code completion plug-in (youcompleteme)
New developments: new trends in cooperation between smartmesh and meshbox
捡起MATLAB的第(2)天
Force buckle-746 Climb stairs with minimum cost
Spark 算子之distinct使用
volatile的含义以及用法
Sort by character occurrence frequency 451