当前位置:网站首页>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
边栏推荐
- Spark 算子之partitionBy
- Upgrade MySQL 5.1 to 5.610
- Day (10) of picking up matlab
- Questions about disaster recovery? Click here
- MySQL - MySQL查询语句的执行过程
- PS add texture to picture
- Countdown 1 day ~ 2022 online conference of cloud disaster tolerance products is about to begin
- matplotlib教程05---操作图像
- Homewbrew installation, common commands and installation path
- 捡起MATLAB的第(4)天
猜你喜欢
Download and install mongodb
Spark 算子之sortBy使用
C#,贝尔数(Bell Number)的计算方法与源程序
Day 9 static abstract class interface
homwbrew安装、常用命令以及安装路径
Research and Practice on business system migration of a government cloud project
Construction of esp32 compilation environment
Intersection, union and difference sets of spark operators
下载并安装MongoDB
The principle and common methods of multithreading and the difference between thread and runnable
随机推荐
How important is the operation and maintenance process? I heard it can save 2 million a year?
GRBL学习(一)
Hypermotion cloud migration helped China Unicom. Qingyun completed the cloud project of a central enterprise and accelerated the cloud process of the group's core business system
How to upgrade openstack across versions
leetcode-374 猜数字大小
The biggest winner is China Telecom. Why do people dislike China Mobile and China Unicom?
Vision of building interstellar computing network
OAK-D树莓派点云项目【附详细代码】
The most detailed knapsack problem!!!
下载并安装MongoDB
What is the experience of using prophet, an open source research tool?
Matplotlib tutorial 05 --- operating images
Passing header request header information between services through feign
leetcode-396 旋转函数
5 minutes, turn your excel into an online database, the magic cube net table Excel database
如何进行应用安全测试(AST)
Using JSON server to create server requests locally
Gartner predicts that the scale of cloud migration will increase significantly; What are the advantages of cloud migration?
Spark 算子之sortBy使用
Fastjon2他来了,性能显著提升,还能再战十年