当前位置:网站首页>MySQL8 - use under Windows package installation method
MySQL8 - use under Windows package installation method
2022-08-02 03:00:00 【jiey0407】
Original URL: MySQL8 – Method of using zip package installation under Windows_ Blog-CSDN Blog_mysql8 zip package installation tutorial
Introduction
This article describes how to install MySQL8 using a compressed package on Windows.
download link
1. URL entry
Enter MySQL's official website: MySQL :: MySQL Community Downloads
2. Find "MySQL Community Server"
3. Download the Community version
You can see the related download items in the page opened later, as shown below:
For GUI installation, select "Windows(x86, 64-bit), ZIP Archive", after entering the page:
Installation process
1. Unzip
First unzip the installation package you downloaded, move this folder to the place where you want to install mysql, that is, the directory you move to is the directory where mysql is installed, for example, mine is placed under D:devMySQL.
2. Set environment variables
Right click "This Computer" => Properties=> Advanced System Settings=> Environment Variables=> System Variables=> PATH=> Add: The path of your mysql bin folder (eg: D:devMySQLmysql-8.0.21-winx64in)
3. Modify the configuration file
Create my.ini file in the root directory (here: D:devMySQLmysql-8.0.21-winx64);
Only basedir and datadir are required.
The encoding of the my.ini file must be English encoding (such as ANSI in Windows, not UTF-8 or GBK, etc.).
[mysqld]
basedir=D:devMySQLmysql-8.0.21-winx64
datadir=D:devMySQLmysql-8.0.21-winx64data
port = 3306
max_connections=200
character-set-server=utf8
default-storage-engine=INNODB
sql_mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES[mysql]
p>
default-character-set=utf8
4.Installation, initialization and setting of mysql service
Then run cmd.exe as an administrator; (the upper left corner of the command window has three words "administrator").
Install
mysqld-install
Initialization
mysqld --initialize-insecure --user=mysql
Startup
net start mysql
5. Login
After entering cmd, enter:
mysql -u root -p
There is no password at the beginning, just press Enter
Quit: quit
6. Change Password
mysqladmin -u root -p password new password=> Enter=> Enter the old password (if you just installed, do not enter) => Enter
7. Exit
quit or exit
8. Restart MySQL
net stop mysqlnet start mysql
Problem resolution
Error reporting
Error when executing mysql -v:
Reason
This error is caused by not having vcredist installed
Solution
Download vcredist address:
LatestSupported Visual C++ Downloads
Install the software you just downloaded. The default location is OK. After the installation is successful, you can re-execute it.
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
边栏推荐
- IPIDEA的使用方式
- Flask之路由(app.route)详解
- 2022年最新一篇文章教你青龙面板拉库,拉取单文件,安装依赖,设置环境变量,解决没有或丢失依赖can‘t find module之保姆教程(附带几十个青龙面板脚本仓库)
- PHP WebSehll backdoor script and detection tool
- * Compare version numbers
- VPS8505 微功率隔离电源隔离芯片 2.3-6V IN /24V/1A 功率管
- 2022.8.1-----leetcode.1374
- 【LeetCode】83.删除排序链表中的重复元素
- MySQL修改最大连接数限制
- mysql8.0.28下载和安装详细教程,适配win11
猜你喜欢
随机推荐
MySQL八股文背诵版
KICAD 小封装拉线卡顿问题 解决方法
架构:分布式任务调度系统(SIA-Task)简介
AcWing 1285. Word Problem Solving (AC Automata)
AcWing 1053. 修复DNA 题解(状态机DP、AC自动机)
Go简单实现协程池
【LeetCode】102. Level order traversal of binary tree
(一)Redis: 基于 Key-Value 的存储系统
OperatingSystemMXBean to get system performance metrics
第10章_索引优化与查询优化
IPFS deployment and file upload (golang)
[Daily LeetCode]——1. The sum of two numbers
1. 获取数据-requests.get()
有人知道HTML怎么到MYSQL数据库吗? (NODEJS)
EasyGBS平台播放视频时偶尔出现播放失败是什么原因?
[LeetCode] 94. Inorder traversal of binary tree
【LeetCode】20. Valid parentheses
非稳压 源特电子 隔离电源模块芯片 5W VPS8504B 24V
微服务:微智能在软件系统的简述
aws s3 upload file