当前位置:网站首页>MySQL 8.0 解压版安装教程
MySQL 8.0 解压版安装教程
2022-06-11 22:53:00 【Please Sit Down】
一、官网下载
https://downloads.mysql.com/archives/community/
或者:MySQL :: Download MySQL Community Server
上传到CSDN中,方便大家下载:MySQL8.0解压版-MySQL文档类资源-CSDN下载
二、解压后添加环境变量

三、在 F:\IDE\mysql-8 目录下新建一个my.ini 用记事本打开,复制以下代码
[mysqld]
#设置时区为东八区,此项设置后,在连接MySQL的时候可以不用每次都手动设置时区
default-time-zone = '+8:00'
# 设置3306端口
port=3306
# 设置mysql的安装目录,记得切换成自己的路径
basedir=F:\IDE\mysql-8
# 设置mysql数据库的数据的存放目录
datadir=F:\IDE\mysql-8\data
# 允许最大连接数
max_connections=200
# 允许连接失败的次数。这是为了防止有人从该主机试图攻击数据库系统
max_connect_errors=10
# 服务端使用的字符集默认为UTF8
character-set-server=utf8
# 创建新表时将使用的默认存储引擎
default-storage-engine=INNODB
# 默认使用“mysql_native_password”插件认证
default_authentication_plugin=mysql_native_password
[mysql]
# 设置mysql客户端默认字符集
default-character-set=utf8
[client]
# 设置mysql客户端连接服务端时默认使用的端口
port=3306
default-character-set=utf8
四、以管理员的身份打开cmd命令窗口 进入MySQL的bin目录
在命令行窗口输入:mysqld --install,回车,提示:Service successfully installed,说明注册服务成功。

五、在 F:\IDE\mysql-8\data 目录下有个.err文件,打开找到初始化密码


六、启动服务
net start mysql 
关闭服务
net stop mysql;若启动拒绝访问,使用管理员启动 cmd 运行命令。

七、登录mysql

八、修改数据库密码
ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY '123456';修改密码成功后输入以下命令刷新权限。
flush privileges;退出,重新登录MySQL。

边栏推荐
- Games-101 Yan Lingqi 5-6 lecture on raster processing (notes sorting)
- 习题9-5 通讯录排序 (20 分)
- Exercise 10-1 judge the three digits that meet the conditions (15 points)
- SecurityContextHolder. getContext(). getAuthentication(). Getprincipal() gets username instead of userdetails
- C# List. Can foreach temporarily / at any time terminate a loop?
- 2022安全员-C证判断题模拟考试平台操作
- 习题11-3 计算最长的字符串长度 (15 分)
- [Day9 literature extensive reading] on the (a) symmetry between the perception of time and space in large-scale environments
- Small program startup performance optimization practice
- Huawei equipment configuration hovpn
猜你喜欢

Svn deploys servers and cleints locally and uses alicloud disks for automatic backup

动态规划之0-1背包问题(详解+分析+原码)

Google搜索为什么不能无限分页?

Is the product stronger or weaker, and is the price unchanged or reduced? Talk about domestic BMW X5

5. Xuecheng project Alipay payment

volatile的解构| 社区征文

Si4432 RF chip scheme typical application of data transmission of wireless communication module of Internet of things

16 | 浮点数和定点数(下):深入理解浮点数到底有什么用?

16 | floating point numbers and fixed-point numbers (Part 2): what is the use of a deep understanding of floating-point numbers?

How to make scripts executable anywhere
随机推荐
Four rounding modes in IEEE754 standard
CloudCompare源码分析:读取ply文件
IEEE-754 floating point converter
Method for WiFi wireless transmission module to access cloud platform using esp8266 chip scheme
H.265编码原理入门
华为云、OBS、
批改网高分短语&句型
Read dense visual slam for rgb-d cameras
习题9-5 通讯录排序 (20 分)
遇到表格,手动翻页太麻烦?我教你写脚本,一页展示所有数据
远程连接redis一会又断开重连
Research Report on development trend and competitive strategy of global non directional beacon industry
Lekao.com: what is the difference between Level 3 health managers and level 2 health managers?
The second bullet of in-depth dialogue with the container service ack distribution: how to build a hybrid cloud unified network plane with the help of hybridnet
Want to be iron man? It is said that many big men use it to get started
Research Report on development trend and competitive strategy of global reverse osmosis membrane cleaning agent industry
926. 将字符串翻转到单调递增
Summary of personal wrong questions (the wrong questions have not been solved and are used for help)
Tensorflow [actual Google deep learning framework] uses HDF5 to process large data sets with tflearn
Exercise 9-6 statistics of student scores by grade (20 points)