Install the unzipped version of MySql database under Windows 10 Step 1: Unzip the zip file to (my) D:\MyGreenSoftware\mysql-5.7.10-winx64 Step 2: Add environment variables (Windows 10 operating system): Right-click Computer -> Properties -> Advanced System Settings -> Environment Variables Find path and edit the path and add ;D:\MyGreenSoftware\mysql-5.7.10-winx64\bin at the end Step 3: Add the configuration file. In the directory where MySQL is unzipped (for example, mine is D:\MyGreenSoftware\mysql-5.7.10-winx64), find the my-default.ini file and add (Here you need to create a data folder under D:\MyGreenSoftware\mysql-5.7.10-winx64\data) [mysqld] basedir=D:\MyGreenSoftware\mysql-5.7.10-winx64 datadir=D:\MyGreenSoftware\mysql-5.7.10-winx64\data port = 3306 If the my-default.ini file is not found, create a my.ini file yourself (first create a txt file, add the above four lines of code to it, save it, and then change the file suffix to ini). Create a new text file txt and name it my.ini (note that the extension must also be changed). Step 4: Initialize the database. Open CMD as an administrator and execute the following command (enter cmd and right-click to run the following command as an administrator) mysqld –initialize –user=mysql –console The console displays: [Note] A temporary password is generated for root@localhost: XXXXXXX Step 5: Add MySQL to the system service and open CMD as an administrator to execute the following command Step 6: Change your password (the random string just generated is hard to remember, so change it to one that is easy for you to remember) The above is the full content of this article. I hope it will be helpful for everyone’s study. I also hope that everyone will support 123WORDPRESS.COM. You may also be interested in:
|
<<: Example usage of JavaScript tamper-proof object
>>: Detailed explanation of chmod command usage in Linux
Today we will introduce how to publish the local ...
Table of contents Message Board Required librarie...
use Flexible boxes play a vital role in front-end...
1. What is scaffolding? 1. Vue CLI Vue CLI is a c...
Since its launch in 2009, flex has been supported...
Table of contents Tutorial Series 1. Introduction...
background All of the company's servers are p...
This article is mysql database Question 1 Import ...
Table of contents Multi-table join query Inner Jo...
1. Introduction This article describes how to use...
Recently I saw an article on a public account tha...
We know that when using HTML on NetEase Blog, we ...
Table of contents aforementioned VARCHAR Type VAR...
After the article "This Will Be a Revolution&...
The meta tag is used to define file information an...