当前位置:网站首页>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
边栏推荐
- Research and Practice on business system migration of a government cloud project
- Distinct use of spark operator
- js正则判断域名或者IP的端口路径是否正确
- Using JSON server to create server requests locally
- Government cloud migration practice: Beiming digital division used hypermotion cloud migration products to implement the cloud migration project for a government unit, and completed the migration of n
- matplotlib教程05---操作图像
- About JMeter startup flash back
- Countdown 1 day ~ 2022 online conference of cloud disaster tolerance products is about to begin
- Force buckle - 198 raid homes and plunder houses
- Import address table analysis (calculated according to the library file name: number of imported functions, function serial number and function name)
猜你喜欢

Meaning and usage of volatile

OAK-D树莓派点云项目【附详细代码】
![Oak-d raspberry pie cloud project [with detailed code]](/img/03/2d464d42614cd65877c645b60047ae.png)
Oak-d raspberry pie cloud project [with detailed code]

Force buckle-746 Climb stairs with minimum cost

Unity Shader学习

Spark 算子之distinct使用

Matplotlib tutorial 05 --- operating images

糖尿病眼底病变综述概要记录

What is cloud migration? The four modes of cloud migration are?

一文读懂串口及各种电平信号含义
随机推荐
Hyperbdr cloud disaster recovery v3 Version 2.1 release supports more cloud platforms and adds monitoring and alarm functions
The most detailed Backpack issues!!!
ESXi封装网卡驱动
Hyperbdr cloud disaster recovery v3 Release of version 3.0 | upgrade of disaster recovery function and optimization of resource group management function
Hypermotion cloud migration completes Alibaba cloud proprietary cloud product ecological integration certification
ESP32_ Arduino
C, calculation method and source program of bell number
Win11/10家庭版禁用Edge的inprivate浏览功能
ES常用查询、排序、聚合语句
Config learning notes component
Spark 算子之交集、并集、差集
Day (4) of picking up matlab
matplotlib教程05---操作图像
5 minutes, turn your excel into an online database, the magic cube net table Excel database
Metalife established a strategic partnership with ESTV and appointed its CEO Eric Yoon as a consultant
七朋元视界可信元宇宙社交体系满足多元化的消费以及社交需求
[open source tool sharing] MCU debugging assistant (oscillograph / modification / log) - linkscope
Meaning and usage of volatile
Distinct use of spark operator
Spark 算子之partitionBy