当前位置:网站首页>Specific steps for installing mysql8.0 on Windows system
Specific steps for installing mysql8.0 on Windows system
2022-06-30 15:29:00 【Learning loving wavelet】
Just record :
If you've installed Mysql, Pay attention to the back 2.1 In the step port Cannot be filled in if selected 3306, You can select ports that are not used by other systems . If you want to uninstall the previous MySQL, Mainly delete MySQL service (net stop mysql,sc delete mysql), Otherwise, it will automatically start the previous mysql service , The new version cannot run . For specific steps of deletion, see https://zhuanlan.zhihu.com/p/68190605
Next is the specific installation steps :
Go to the official website to download . See address Official address , No registration , choice download--》no thanks,start ...
Unzip it and put it in the location to be installed , As my :

2.1 stay sql New China my.ini file , The contents are as follows : The default ports are 3306, If multiple mysql, Be careful not to repeat the port .
[client]
# Set up mysql Client default character set
default-character-set=utf8mb4
[mysqld]
# Set up 3306 port
port = 3306
# Set up mysql Installation directory
basedir=E:\\MySQL\\sql
# Set up mysql Database data storage directory ,MySQL 8+ The following configuration is not required , The system can be generated by itself , Otherwise, it is possible to report an error
# datadir=C:\\web\\sqldata
# Maximum connections allowed
max_connections=20
# The character set used by the server defaults to 8 Bit coded latin1 Character set
character-set-server=utf8mb4
# The default storage engine that will be used when creating a new table
default-storage-engine=INNODB2.2 cd To bin Under the table of contents , My is cd E:/mysql/sql/bin, Convenient for subsequent command lines mysql、mysqld Etc .
3. Initialize database
mysqld --initialize --consoleRecord temporary password :h%LI35(I7-eg
E:\MySQL\sql\bin>mysqld --initialize --console
2020-02-16T04:03:42.024265Z 0 [System] [MY-013169] [Server] E:\MySQL\sql\bin\mysqld.exe (mysqld 8.0.19) initializing of server in progress as process 996
2020-02-16T04:03:56.263496Z 5 [Note] [MY-010454] [Server] A temporary password is generated for [email protected]: h%LI35(I7-eg4. install MySQL service , Received the results :Service successfully installed.
mysqld install5. start-up MySQL service , Service started successfully .
net start mysql6. Sign in , The password was recorded before , And change the password ( There are many ways , however mysql8.0 No need to add password("123456"), Instead of directly ‘123456’).
mysql -u root -pset password for [email protected] = '123456';
边栏推荐
- 4.7 type() function query data type
- 分布式--OpenResty+lua+Redis
- 1134: Legal C identifier query
- What would you choose between architecture optimization and business iteration?
- 1077 kuchiguse (20 points)
- Anyrtc implements application scenarios based on webrtc
- Start your global dynamic acceleration journey of Web services in three steps
- Examples of bubble sorting and matrix element screening in MATLAB
- Matlab calculates the factorial sum of the first n numbers (easy to understand)
- B. Moamen and k-subarrays (codeforce+ binary search)
猜你喜欢

How should we understand the variability of architecture design?

J - Borg maze (minimum spanning tree +bfs)

NPM install --global --save --save dev differences

Kubernetes: a comprehensive analysis of container choreography

Anyrtc implements application scenarios based on webrtc

Repair of incorrect deletion of win10 boot entry

Industry analysis | the future of real-time audio and video
![[matlab] 2D drawing summary](/img/de/6bb5385f440a2997dbf9cbb9a756eb.jpg)
[matlab] 2D drawing summary

Four solutions to cross domain problems

Talk about why I started technical writing
随机推荐
Fundamentals of C language -- similarities and differences between arrays and pointers
1062 talent and virtue (25 points)
Why do high precision CNC machining centers have errors? You should pay attention to these four reasons!
Matlab judge palindrome number (only numbers)
Is pioneer futures safe? What are the procedures for opening futures accounts? How to reduce the futures commission?
高精度CNC加工中心为什么会出现误差?这4个原因你要注意!
Teach you a learning method to quickly master knowledge
Steps for commissioning of vertical machining center
Infrastructure is code. What are you talking about?
Voice codec based on machine learning Agora silver: support high quality voice interaction at ultra-low bit rate
容器常用命令
1133: output family and friends string
Matlab function for limit, definite integral, first-order derivative, second-order derivative (classic examples)
Pointer understanding
Bucket sorting (C language)
Mysql database - create user name & modify permission
The sound network has fully opened the real-time transmission network sd-rtn, which has been free of network wide accidents for seven years - this is FPA!
Notes on zero basic C language learning -- first introduction -- 1 notes that mom can understand
4.5 integer
I - constructing roads