In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-05 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)06/01 Report--
Next, let's learn about the detailed process of downloading MySQL5.7 and installation of Mac system. I believe you will benefit a lot after reading it. The text is not in the essence. I hope that the Mac system downloads MySQL5.7 and installs the detailed process of this short article is what you want.
one。 Enter the following address in the browser
Https://dev.mysql.com/downloads/mysql/
two。 Enter the following interface: directly click on the location below and choose to skip login
Download directly after clicking this.
three。 After the download is complete, double-click directly to open it, pop up the following interface, and then continue to click.
Continue with the following click, just as you are learning to install other software
four。 Start MySQL
After the installation is complete, check the following options in the settings. If there is a MySQL in it, the installation has been successful.
After clicking, start MySQL
five。 Modify database password
When the startup is complete, open the terminal
Aliasmysql=/usr/local/mysql/bin/mysql
Aliasmysqladmin=/usr/local/mysql/bin/mysqladmin
Copy the above two instructions to the terminal to run, give two addresses to a temporary alias
The purpose is that the next execution can directly execute mysql or mysqladmin.
There is no need to change directories back and forth.
Next, change the database password and execute the following command
Mysqladmin-u root-p password root123
Root123 is my new password. Change it to the password you want to set.
After pressing enter, prompt for the password. At this time, let the password entered is not the password of your computer.
But the password of the database.
All users have default username and password before 5.7.All of them are root.
But from 5.7onwards, only the default user name P:root
The default password will be assigned to you automatically, and will be assigned to you automatically during installation.
We can also check it from the mac notification bar.
In the following figure, a database password is automatically generated.
The default password is localhost: everything that follows, enter it and enter.
(Mac cannot see the password on the command line, so when entering the password, be careful not to type it incorrectly)
six。 Access to the database
Seeing the above information, the modification is successful.
Next, enter the database.
Make sure it is executed: aliasmysql=/usr/local/mysql/bin/mysql
If not, you need to change to the above directory before you can execute the mysql command.
Otherwise prompt to find no mysql
Then execute the following instructions: mysql-u root-p
Note that nothing is written after p, and then enter the car.
You will be asked to enter your password, and the password at this time is the password you changed above.
What I enter here is: root123
See the following information, all indicate that it has been entered into the database
After reading this article on the detailed process of downloading MySQL5.7 and installation in Mac system, many readers will want to know more about it. For more industry information, you can follow our industry information section.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.