当前位置:网站首页>MySQL compressed package installation, fool teaching
MySQL compressed package installation, fool teaching
2022-07-30 21:36:00 【bhegi_seg】
1. Download the mysql installation package from the official website
URL: MySQL :: Download MySQL Community Server (Archived Versions)Versions)
Select the version and download the compressed package (I chose 5.7.30 here)
2.After the download is complete, extract it (note: try not to have Chinese or spaces in the path of programming software during installation) 
3. Then create the my.ini configuration file in the file directory 
Add the following configuration to the my.ini configuration file
[mysqld]#Set 3306 portport=3306# Set the installation directory of mysqlbasedir=D:Mysqlmysql-5.7.35# Set the storage directory for the data of the mysql databasedatadir=D:Mysqlmysql-5.7.35data# maximum number of connections allowedmax_connections=200# 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# skip passwordskip-grant-tables4. Then copy the bin file path in the directory and add it to the global environment variable (if the global environment variable will not be added, you can move to the previous article on the home page)
5. After the configuration is complete, save and exit, then open cmd as an administrator, and enter mysql --version to check whether the environment is successfully configured (the following is the case of success) 
At this step, some students may report an error: Cannot continue to execute the code because MSVCP120.dll cannot be found
Cause there is no vcredist, workaround: Downloadvcredist URLDownload Visual C++ Redistributable Packages for Visual Studio 2013 from Official Microsoft Download CenterChoose the corresponding version to download, install it immediatelyCan
6. Use the mysqld-install command to install the MySQL service
7. Enter the bin directory of the mysql file Enter the bin directory!!!Use mysqld --initialize-insecure to initialize the data directory (data directory: store configuration files, log files, database data files)

8. Enter net start mysql to start the mysql service

9. After successful startup, enter mysql -uroot to log in to mysql (because the skip password has been set in the my.ini configuration file, so this login does not require a password)
10. After successful login, we enter update user set authentication_string=password("the password you want to modify") where user="root";reset the password, after entering flushprivileges; Refresh the permissions, enter quit to exit mysql after no error is reported
11. After setting the password, go back to the my.ini configuration file, comment it out with # or delete it directly skip-grant-tables
Then here I have successfully downloaded and configured mysql
14. Restart the mysql service to check if it can run completely: Enter net stop mysql to stop the service first, then enter net startmysql to start the service, there may be someThe little friend will report an error: ERROR 2003 (HY000): Can't connect to MySQL server on 'localhost' (10061) At this time, we only need to right-click this computer, click Manage, select Services,Find mysql, select the startup type as automatic, and then start it, 
So far, our mysql has been successfully installed
The test is effective, I hope it helps everyone
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 Ali 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 copy of "a complete 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
边栏推荐
- How do I refresh the company's background management system (Part 1) - performance optimization
- MySQL 有这一篇就够(呕心狂敲37k字,只为博君一点赞!!!)
- 牛客网——业务分析-提取值
- [Deep Learning] Understanding of Domain Adaptation in Transfer Learning and Introduction of 3 Techniques
- The reason for not using bs4 is that the name is too long?Crawl lottery lottery information
- JDBC (detailed explanation)
- 基于ABP实现DDD--仓储实践
- 面试难题:分布式 Session 实现难点,这篇就够!
- C语言犄角旮旯的知识之结构体
- 8 ways to get element attributes in JS
猜你喜欢

MySQL user authorization

ClickHouse 数据插入、更新与删除操作 SQL

Outsourcing worked for three years, it was abolished...

Navicat连接MySQL时弹出:1045:Access denied for user ‘root’@’localhost’

导航栏----个人中心 Dropdown
![[Machine Learning] The Beauty of Mathematics Behind Gradient Descent](/img/63/c9d5d9370c28dbce0195e1ff26869b.jpg)
[Machine Learning] The Beauty of Mathematics Behind Gradient Descent

navicat无法连接mysql超详细处理方法

【Nacos】解决Nacos下载速度缓慢的问题

【机器学习】梯度下降背后的数学之美

HCIP第十六天
随机推荐
手动从0搭建ABP框架-ABP官方完整解决方案和手动搭建简化解决方案实践
冲刺第六周
触摸屏状态机
WinDbg实践--入门篇
JDBC(详解)
MySQL 用户授权
How strict Typescript strict mode?
JUC原子类详解
Image Restoration by Estimating Frequency Distribution of Local Patches
Day 16 of HCIP
tcp协议传输中的粘包问题
[Limited Time Bonus] 21-Day Learning Challenge - MySQL from entry to mastery
Uni-app 小程序 App 的广告变现之路:激励视频广告
MySql创建数据表
y82.第四章 Prometheus大厂监控体系及实战 -- 监控扩展和prometheus 联邦(十三)
共用体、共用体与结构体的区别、枚举之C语言犄角旮旯的知识
Union, the difference between union and structure, the knowledge of enumeration of C language corners
Deep Non-Local Kalman Network for VideoCompression Artifact Reduction
数据指标口径不统一、重复开发?亿信ABI指标管理平台帮你解决
你需要知道的ES6—ES13开发技巧