First, download the installation package from the MySQL official website. MySQL is open source, so just download it directly. Then select: For personal use, I chose this: After downloading, unzip the downloaded installation package and put it in your favorite location, then set the environment variables: I am a win10 system, that is, this computer-properties-advanced system settings-environment variables: Just copy the path of the unzipped bin directory into it! Then the important step is: create a new text document file in the unzipped root directory and change the suffix to .ini Open my.ini as a text document and write the following content [mysqld] basedir=F:\Environment\mysql-8.0.23-winx64 datadir=F:\Environment\mysql-8.0.23-winx64\data\ port=3306 As administrator again! ! Change the path to the bin directory under mysql: mysql -install After the prompt is successful, enter the data file to initialize mysql --initialize-insecure --user=mysql After success, the data folder will appear in the mysql root directory. It should not exist originally! Bypass password authentication: mysqld --console --skip-grant-tables --shared-memory Then open another cmd window with administrator privileges. Switch to the mysql bin directory and start mysql. net start mysql Then use the command to enter the management interface mysql -u root -p After entering, use the following command to modify the root password. Please note! Mysql8.0 password modification is different from the previous one! ALTER user 'root'@'localhost' IDENTIFIED BY 'new password'; After that, refresh it and restart it to use normally: flush privileges; The commands used in the above steps should be the following: mysql -install //Install mysql mysql --initialize-insecure --user=mysql //Initialize the data file net start mysql //Start the MySQL service mysql -u root -p //Use no password to change the root password ALTER user 'root'@'localhost' IDENTIFIED BY 'new password'; //Change the root password, Mysql8.0 mode flush privileges; //Refresh the database exit //Exit the MySQL management interface net stop mysql //Shut down the MySQL service Note: For versions prior to 8.0, how to change the password if you forget it Find the bin directory: mysqld --skip-grant-tables This is the end of this article about the detailed graphic description of the MySql8.023 installation process (first installation). For more information about the MySql8.023 installation process, please search for previous articles on 123WORDPRESS.COM or continue to browse the related articles below. I hope everyone will support 123WORDPRESS.COM in the future! You may also be interested in:
|
<<: IE8 provides a good experience: Activities
>>: The w3c organization gives style recommendations for html4
The commands pulled by docker are stored in the /...
Table of contents 1. Introduction to the connecti...
question Because some of our pages request data i...
The temperament of a web front-end website is a fe...
I've been writing a WeChat applet recently an...
Shell Script #!/bin/sh # Current directory CURREN...
In previous blog posts, I have been focusing on so...
Recently, when I was working on monitoring equipm...
1. How to construct? Let's review the common ...
This article shares with you how to use JavaScrip...
How can we say that we should avoid 404? The reas...
1. View the renderings Select forward: Select bac...
This article shares the specific code of using ca...
1. Download the Linux version from the official w...
illustrate: Using mysqldump –all-databases will e...