1. Download MySQL Archive (decompressed version) URL: https://downloads.mysql.com/archives/community/ 2. Unzip the file to the custom installation directory: There is no "data" folder and "my.ini" configuration file after decompression 3. Configure environment variables after decompression System variables: Create a new "MYSQL_HOME" value: xxx\mysql-5.7.20-winx64 (custom installation directory root path) Append Path:;%MYSQL_HOME%\bin 4. Create a "my.ini" configuration file in the root directory of the custom installation path Configuration information: [client] port = 3306 [mysqld] port = 3306 basedir=%MYSQL_HOME% datadir=%MYSQL_HOME%\data max_connections=200 character-set-server=utf8 default-storage-engine=INNODB sql_mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES #Skip password skip-grant-tables 5. Initialize and install MySQL: In the cmd terminal (it is recommended to run with administrator privileges) >mysqld --initialize >mysqld -install //Install the MySQL service. You can view the service in services.msc>net start/stop mysql //Open and close mysql 6. Set the root user password >mysql -u root -p enter password: Press Enter directly to enter mysql>update mysql.user set authentication_string=password('123') where user='root' and host='localhost'; mysql>flush privileges; Exit mysql Go to my.ini and comment out skip-grant-tables After logging into MySQL, you will be prompted: mysql error You must reset your password using ALTER USER statement before executing this statement. mysql>SET PASSWORD=PASSWORD('123'); mysql>ALTER USER 'root'@'localhost' PASSWORD EXPIRE NEVER; mysql>flush privileges; Just log in again. Summarize The above is the tutorial on how to install the decompressed version of MySQL 5.7.20 and change the root password. I hope it will be helpful to you. If you have any questions, please leave me a message and I 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:
|
<<: A brief discussion on the Linux kernel's support for floating-point operations
>>: Detailed explanation of JS ES6 coding standards
There are too much knowledge to learn recently, a...
To install a virtual machine on a Windows system,...
Table of contents 01 Problem Description 02 Solut...
This article shares the specific code of writing ...
Web page design related questions, see if you can...
<br />Original address: http://andymao.com/a...
Table of contents Project Directory Dockerfile Fi...
Table of contents Memory Pool Overview 1. nginx d...
Table of contents 1. Overview 2. Memory Managemen...
For front-end developers, ensuring that the code ...
Table of contents 1. Installation 2. Import 3. De...
1. Big Data and Hadoop To study and learn about b...
This collection showcases a number of outstanding ...
The mobile version of the website should at least...
This article records the detailed installation pr...