当前位置:网站首页>MySQL 8.0.29 decompressed version installation tutorial (valid for personal testing)
MySQL 8.0.29 decompressed version installation tutorial (valid for personal testing)
2022-07-30 21:36:00 【front end cry】
For friends who cannot install Mysql Install without Visual C++ 2019.exe on their computer, this detailed step will be more clear~
1. Download (official website: MySQL) Click "MySQL" in bracketsjump.
Slide the page to the bottom and click on the image.

Click: Download to download

Click on the picture and it's ok, you can start downloading!

Second, unzip, here are some operations: (Unzip the downloaded file and place it in your favorite location, the location of the author's file: C:Program FilesMySQLmysql-8.0.29-winx64) ProvidedLearn from
(1) Create a file named "my.ini" and edit it (if the file cannot be created in the C drive, it can be created on the desktop):
[mysql]# Set the default character set of the mysql clientdefault-character-set=utf8[mysqld]# set port 3306port=3306# Set the installation directory of mysqlbasedir = C:\Program Files\MySQL\mysql-8.0.29-winx64\# Set the storage directory for the data of the mysql databasedatadir = C:\Program Files\MySQL\mysql-8.0.29-winx64\data# maximum number of connections allowedmax_connections=20# The character set used by the server defaults to the 8-bit encoded latin1 character setcharacter-set-server=utf8# The default storage engine that will be used when creating new tablesdefault-storage-engine=INNODB# create schemasql_mode = NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLESC:\Program Files\MySQL\mysql-8.0.29-winx64\ This directory must be "\", don't make it "" or an error will be reported,
Mysq installation directory and data storage directory must beModify it to the directory you set yourself, unless the directory you set is the same as above.
(2) Drag the edited "myini" file into the decompressed file (in line with bin and other directories)

(3) Configure MySQL environment variables:

Create a new system variable in the system variable, fill in the corresponding information, and click OK.
MYSQL_HOMEC:Program FilesMySQLmysql-8.0.29-winx64 # This is the upper level directory of bin
Then, look for Path in the system variables, click Edit, add it at the bottom, click OK, and exit the next time.
%MYSQL_HOME%bin
Third, run cmd as an administrator and perform the following operations:
(1) Switch to the bin directory of mysql:
===========================================================After opening cmd, the default is: C:Users8690>If the previously decompressed files are placed in the D drive, first enter: d: to jump to the D driveOn input: cd:filepathGo to the bin directory cd C:Program FilesMySQLmysql-8.0.29-winx64inC:Program FilesMySQLmysql-8.0.29-winx64in>That's it!============================================================
(2) Execute the mysqld --initialize command. At this time, a new directory data will be generated in the same level directory of bin. Click data to view the .err file, and you can see the random password generated by the root user;

If you can't edit it directly, you can copy and drag it to the desktop to view it. The target box is: the random password generated by the root user

(3) Execute the mysqld --install command to install the mysqld service:
mysqld --install(4) Execute the net start mysql command to start the mysql service:
net start mysql(5) Execute the mysql -u root -p command, connect to the mysql database, and enter the above randomly generated password (the password here can only be "knocked by hand"):
mysql -u root -p(6) Execute sql reset root password operation:
mysql> alter user 'root'@'localhost' identified with mysql_native_password by 'new password';tips:
- mysqld --initialize-insecure automatically generates a passwordless root user;
- mysqld --initialize automatically generates a root user with a random password;
- mysqld -remove removes its own mysqld service;
- net stop mysql command, stop mysql service
- If an error is reported, please delete the data folder and perform the above operations again
Let me introduce myself first. The editor graduated from Shanghai Jiaotong University in 2013. I worked in a small company and went to big factories such as Huawei and OPPO. I joined Alibaba in 2018, until now.I know that most junior and intermediate java engineers want to upgrade their skills, they often need to explore their own growth or sign up to study, but for training institutions, the tuition fee is nearly 10,000 yuan, which is really stressful.Self-learning that is not systematic is very inefficient and lengthy, and it is easy to hit the ceiling and the technology stops.Therefore, I collected a "full set of learning materials for java development" for everyone. The original intention is also very simple. I hope to help friends who want to learn by themselves but don't know where to start, and at the same time reduce everyone's burden.Add the business card below to get a full set of learning materials
边栏推荐
猜你喜欢
随机推荐
系统结构考点之并行主存
Union, the difference between union and structure, the knowledge of enumeration of C language corners
关于MySQL主从复制的数据同步延迟问题
qt使用动态库(DLL)
Quick Master QML Chapter 6 Animation
kubernetes
Chrome 配置samesite=none方式
3 minutes to take you to understand WeChat applet development
【Nacos】解决Nacos下载速度缓慢的问题
TransGAN代码复现—九天毕昇平台
手把手教你搭建一台永久运行的个人服务器
openim支持十万超级大群
对List集合中每个对象元素按时间顺序排序
mysql 时间字段默认设置为当前时间
MySQL user authorization
新书上市 |《谁在掷骰子?》在“不确定性时代”中确定前行
Navicat连接MySQL时弹出:1045:Access denied for user ‘root’@’localhost’
共用体、共用体与结构体的区别、枚举之C语言犄角旮旯的知识
Enhancing Quality for HEVC Compressed Videos
面试难题:分布式 Session 实现难点,这篇就够!









