当前位置:网站首页>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_TABLES
C:\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
边栏推荐
- Google Earth Engine ——
- MySQL60 homework
- QUALITY-GATED CONVOLUTIONAL LSTM FOR ENHANCING COMPRESSED VIDEO
- Image Restoration by Estimating Frequency Distribution of Local Patches
- [Limited Time Bonus] 21-Day Learning Challenge - MySQL from entry to mastery
- Typescript 严格模式有多严格?
- HCIP第十六天
- JS中获取元素属性的8大方法
- (7/29)基础板子最小生成树prim+kruskal
- MySQL分页查询的5种方法
猜你喜欢
基于ABP实现DDD--领域服务、应用服务和DTO实践
【网络安全专栏目录】--企鹅专栏导航
navicat无法连接mysql超详细处理方法
ClickHouse删除数据之delete问题详解
Google Earth Engine ——ee.List.sequence函数的使用
走进Redis,让你重新认识redis。绝不是表面
解决centos8 MySQL密码问题ERROR 1820 (HY000) You must reset your password using ALTER USER
系统结构考点之并行主存
ClickHouse 数据插入、更新与删除操作 SQL
数据指标口径不统一、重复开发?亿信ABI指标管理平台帮你解决
随机推荐
About the data synchronization delay of MySQL master-slave replication
LeetCode·Daily Question·952. Calculate Maximum Component Size by Common Factor·Union Check
navicat无法连接mysql超详细处理方法
cookie和session区别
解决centos8 MySQL密码问题ERROR 1820 (HY000) You must reset your password using ALTER USER
字节对齐之C语言犄角旮旯的知识
How do I refresh the company's background management system (Part 1) - performance optimization
Google Earth Engine ——ee.List.sequence函数的使用
Markdown的使用
tcp协议传输中的粘包问题
Google Earth Engine ——我们如何筛选一个列表中的排序以时间为例
史上最全的Redis基础+进阶项目实战总结笔记
GPGGA NTRIP RTCM 笔记
我是如何让公司后台管理系统焕然一新的(上) -性能优化
拿什么来保护数据安全?基层数据安全体系建设待提升
冲刺第六周
你需要知道的ES6—ES13开发技巧
kubernetes
Motion Tuned Spatio-temporal Quality Assessmentof Natural Videos
Deep Kalman Filter Network for Video Compression Artifact Removal