当前位置:网站首页>Using CMD (command prompt) to install MySQL & configure the environment
Using CMD (command prompt) to install MySQL & configure the environment
2022-06-25 12:49:00 【xiongᥫᩣ】
Catalog
Two , Configure environment variables
One , decompression
You can download it from the Internet mysql The compressed package of is used to install , After downloading the compressed package, the first step is to decompress .
Two , Configure environment variables
1. Find this computer on the desktop , Right click to select Properties

2. After entering the setting , Slide down and click Advanced system settings

3. After entering advanced system settings, click environment variables

4. Click New , Add a system variable

5. Variable names can be used directly MYSQL_HOME The value of the variable is your mysql Folder storage location

3、 ... and , edit path
1. Find... In the system variable Path

2. Double click in Path Click new to add an environment variable

Four , newly build my.ini
1. Copy and paste the file into MySQL Go to the folder

2. Right click Edit , Replace the default path inside with the one you saved MySQL Path to folder

The following operations need to be entered first bin Directory
5、 ... and , install
win+r Input cmd Go to the command prompt , Go back to bin Go to the catalogue
The following is the blogger's code :
C:\Users\Administrator>f:
F:\>cd mysql5.7
F:\mysql5.7>cd mysql-5.7.23-winx64
F:\mysql5.7\mysql-5.7.23-winx64>cd bin
F:\mysql5.7\mysql-5.7.23-winx64\bin>

Then enter the following code to MySQL Installation
mysqld -install
6、 ... and , initialization
According to just my.ini File to initialize , Then it will produce a data Folder
mysqld --initialize-insecure --user=mysql

7、 ... and , start-up
stay cmd Enter the following code in , Use to start MySQL
net start mysql
Open the task manager and you can see that there are already MySQL The existence of

8、 ... and , Set the password
stay password Enter the new password later , And then click enter Go to the next step
mysqladmin -u root -p password New password

Enter password: Old password Directly enter , Because initialization directly puts mysql The password for is set to null , So the first old password is empty

Nine , Connect
stay cmd Enter the following code in :
When it is found that the database can be displayed , It means that MySQL It has been installed successfully
Connect mysql -uroot -p ;
Display database show databases;
Display table show tables;
That's all for today's knowledge sharing , Wonderful next issue continues ! If you have any questions, you can leave a message in the comment area or send a private message to the blogger
边栏推荐
- Go from 0 to 1. Obtain the installation package, get, post request, params, body and other parameters
- Laravel task scheduling
- Common software numerical filtering methods (I) have been applied
- Foreach method of array in JS
- Go defer little knowledge
- JS array de duplication
- The drop-down box renders numbers instead of the corresponding text. How to deal with it
- Parse JSON format data and save it to entity class
- 阿里稳定性之故障应急处理流程
- PHP parsing QR code content
猜你喜欢

Go from 0 to 1. Obtain the installation package, get, post request, params, body and other parameters

Service charge and time setting code sharing involved in crmeb withdrawal process

Command line garbled

CUDA error: unspecified launch failure

Geospatial search - > R tree index

画图常用配色

Idea2017 how to set not to automatically open a project at startup

Elemtnui select control combined with tree control to realize user-defined search method

Differences between JS and JQ operation objects

微信全文搜索技术优化
随机推荐
高性能负载均衡架构如何实现?
[Visio]平行四边形在Word中模糊问题解决
Slice and slice methods of arrays in JS
2021-09-22
Wechat forbids sharing
3+1保障:高可用系统稳定性是如何炼成的?
Zhangxiaobai's way of penetration (III) -- detailed explanation of SQL injection vulnerability principle (SQL Server)
Zhangxiaobai's way of penetration (V) -- detailed explanation of upload vulnerability and parsing vulnerability
Laravel multi project mutual access
JS array length is defined
词法陷阱(C)
2021-09-28
Laravel echart statistical chart line chart
3+1 guarantee: how is the stability of the highly available system refined?
First acquaintance with CANopen
MySQL common interview questions
JS function exercises
Guess Tongyuan B
The amount is verified, and two zeros are spliced by integers during echo
torch.tensor拼接与list(tensors)