1. Use the installation package to install MySQL (online download is too slow, if you need the installation package, you can leave a message at the bottom of the article and I will send it to you) Double-click to open the installation file Double-click the pkg file to install all the way down. Remember to save the password in the last pop-up box (it is the password of your mysql root account). Under normal circumstances, the installation is successful. At this point, the installation is successful, but additional configuration is required: (1) Enter System Preferences (2) Click mysql (3) Start the MySQL service Add mysql to the system environment variables Enter /usr/local/mysql/bin and check whether there is mysql in this directory
pass Log in to mysql, you will be asked to enter the password Apple->System Preferences->Click MySQL at the bottom. In the pop-up page, turn off the MySQL service (click Stop MySQL Server). step2: Enter the terminal and enter: cd /usr/local/mysql/bin/ After pressing Enter, log in with administrator privileges sudo su After pressing Enter, enter the following command to disable the mysql authentication function./mysqld_safe --skip-grant-tables & After pressing Enter, MySQL will automatically restart (the status of MySQL in the preferences will become running) step3. Enter the command ./mysql After pressing Enter, enter the command FLUSH PRIVILEGES; After pressing Enter, enter the command
At this point, the password change is complete and you can log in successfully. Summarize The above is the installation process of MySQL5.7.22 on Mac introduced by the editor. I hope it will be helpful to everyone. If you have any questions, please leave me a message and the editor will reply to you in time. I would also like to thank everyone for their support of the 123WORDPRESS.COM website! You may also be interested in:
|
<<: How to use vue3 to build a material library
>>: Detailed explanation of pipeline and valve in tomcat pipeline mode
Download the official website First go to the off...
Preface Before, I used cache to highlight the rou...
Note: This article is about the basic knowledge p...
Table of contents 0x01 Failed to load the driver ...
Why beautify the file control? Just imagine that a...
Everyone must know the composition of the box mod...
1. Background In actual projects, we will encount...
Preface When using Docker in a production environ...
Transactions in MySQL are automatically committed...
1. Install Howdy: howdy project address sudo add-...
Because if there is no forward slash at the end of...
Table of contents 1. Repeated declaration 1.1 var...
First, let's simulate the data coming from th...
Monday to Sunday time format conversion (Y --- ye...
By default, the MyISAM table will generate three ...