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
This article shares the specific code of js to im...
1. Download centos7 Download address: https://mir...
Purpose: 1. In order to map the server's exte...
Today, the error "No input file specified&qu...
The bash history command in Linux system helps to...
1. Download cuda10.1: NVIDIA official website lin...
This article shares the specific code of Vue to i...
Prerequisites for installing MySQL: Install CentO...
Table of contents 1. Two-way binding 2. Will the ...
This article summarizes the implementation method...
When we use the folder properties dialog box in Wi...
Only display Docker container mount directory inf...
1. Use the transform attribute to display the ima...
1. Introduction tr is used to convert or delete a...
The mathematical expression calc() is a function ...