当前位置:网站首页>MySQL的下载和安装
MySQL的下载和安装
2022-06-29 02:12:00 【长街395】
这里先给出MySQL的下载链接:
官方下载网址:MySQL :: MySQL Downloads

选择DOWNLOADS,找到MySQL Community (GPL) Downloads »

再找到

2.进入下载页面
- 下载安装种类分为MSI(安装包)和ZIP两种,如下图

然后直接下载:

本人比较习惯解压到E盘,更换路径后,点击【确定】如下图:

配置
到上一步的解压目录(E:\mysql-8.0.22-winx64)下:
1)创建一个my.txt文本文件以用于配置。
2)创建data文件,用于存放以后的MySQL数据。
将以下代码复制到my.txt文本文件中**(需将代码中的basedir和datadir路径更换为自己的路径)**,将my.txt文件重命名为my.ini文件
[mysql]
# 设置mysql客户端默认字符集
default-character-set=utf8
[mysqld]
#设置3306端口
port = 3306
# 设置mysql的安装目录
basedir=E:\mysql-8.0.22-winx64
# 设置mysql数据库的数据的存放目录
datadir=E:\mysql-8.0.22-winx64\data
# 允许最大连接数
max_connections=200
# 服务端使用的字符集默认为UTF8
character-set-server=utf8
# 创建新表时将使用的默认存储引擎
default-storage-engine=INNODB
右键【左下角的win】以管理员身份运行Windows PowerShell,也可以管理员身份运行cmd,这里我用的时win10的Windows PowerShell。
跳转到MySQL的目录下
1)初始化之前创建的data文件,并不设置root密码
.\mysqld --initialize-insecure
2)安装MySql服务
.\mysqld -install
如果报错,请自行查看bin文件下的exe,与上一步相同
3)查看MySQL服务是否开启
services.msc

4)启动服务
net start mysql

边栏推荐
- Google Borg论文
- Large scale visual relationship understanding
- Utiliser kubernets Resource Lock pour compléter son application ha
- How to encrypt anti copy program
- Wechat campaign auto like
- 为什么要在网站上安装SSL证书?
- 【学习笔记】子集和问题
- 如何成为一名高级数字 IC 设计工程师(4-5)脚本篇:Shell 脚本实现的文件比较操作
- Zhongyi technology resumed the review status of the gem IPO, and xuxiaofei no longer acted as a practicing lawyer
- 为什么建议大家尽可能选择自研公司
猜你喜欢
![[redis] list type](/img/c7/adec2aaea50d69a0aed95bfe683b9e.png)
[redis] list type

The left toolbar of hbuilder is missing

SAP ui5 beginner tutorial 22 - development and use of filter

Differences between web testing and app testing

How to encrypt anti copy program

SystemVerilog-结构体(一)

我把整个研发中台拆分过程的一些心得总结
![[MySQL practice of high concurrency, high performance and high availability of massive data -9] - transaction concurrency control solutions lbcc and mvcc](/img/62/77c2274db4f92ad1d88901e149251c.jpg)
[MySQL practice of high concurrency, high performance and high availability of massive data -9] - transaction concurrency control solutions lbcc and mvcc

C language course design - food warehouse management system

Live broadcast preview | can SQL also play industrial machine learning? Mlops meetup V3 takes you to the bottom!
随机推荐
Secondary encapsulation of storage (sessionstorage/localstorage) using TS
在按钮禁用时消除hover效果
Qt基础教程:QStringList
SystemVerilog-结构体(一)
利用kubernetes資源鎖完成自己的HA應用
Redis data migration (III)
[high concurrency, high performance and high availability of massive data MySQL practice-10] - Implementation of mvcc in InnoDB
KOA Quick Start
Configurable FFT system design based on risc-v SOC (1) Introduction
TiFlash 面向编译器的自动向量化加速
e. Difference between target and e.currenttarget
【Redis】Hash类型
Boost the digital economy and face the future office | the launch of the new version of spreadjsv15.0 is about to begin
Finally got the byte offer. The 25-year-old inexperienced experience in software testing is written to you who are still confused
为什么建议大家尽可能选择自研公司
110. simple chat room 13: chat room server
如何用项目甘特图,做好项目汇报
大智慧手机股票开户哪个券商更安全更方便?
Necessary technologies for chip manufacturers (1) Introduction
To apply for a test engineer after years, the resume with high scores should be written like this
