当前位置:网站首页>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。

边栏推荐
- 小程序启动性能优化实践
- Meetup review how Devops & mlops solve the machine learning dilemma in enterprises?
- Zigbee3.0 wireless packet capturing installation method based on e18-2g4u04b
- Swiper -- a solution to the conflict of single page multicast plug-ins
- [Day8 literature extensive reading] space and time in the child's mind: evidence for a cross dimensional symmetry
- Is it too troublesome to turn pages manually when you encounter a form? I'll teach you to write a script that shows all the data on one page
- 习题9-5 通讯录排序 (20 分)
- [day3 literature intensive reading] Oriental time and space interaction in tau and kappa effects
- 【Day4 文献精读】Space–time interdependence: Evidence against asymmetric mapping between time and space
- Research Report on development trend and competitive strategy of global wafer recycling and OEM service industry
猜你喜欢
![[day11-12 intensive literature reading] on languages in memory: an internal clock account of space-time interaction](/img/85/4486bd46b5f32331ce398e42e5d803.png)
[day11-12 intensive literature reading] on languages in memory: an internal clock account of space-time interaction

遇到表格,手动翻页太麻烦?我教你写脚本,一页展示所有数据

Huawei cloud, OBS

【Day2 文献精读】Time in the mind: Using space to think about time

2022年安全员-A证考题模拟考试平台操作

H. 265 introduction to coding principles
![[solution] solution to asymmetric and abnormal transformation caused by modifying the transform information of sub objects](/img/52/7e741154e4d6e61c5df7e8701ab177.png)
[solution] solution to asymmetric and abnormal transformation caused by modifying the transform information of sub objects

Summary of personal wrong questions (the wrong questions have not been solved and are used for help)
![[Day10 literature extensive reading] temporary cognition can affect spatial cognition more than vice versa: the effect of](/img/f7/03709322088b9ec57b20e49110d420.png)
[Day10 literature extensive reading] temporary cognition can affect spatial cognition more than vice versa: the effect of

16 | floating point numbers and fixed-point numbers (Part 2): what is the use of a deep understanding of floating-point numbers?
随机推荐
[Day9 literature extensive reading] on the (a) symmetry between the perception of time and space in large-scale environments
Exercise 8-2 finding a specified element in an array (15 points)
Common problems of Converged Communication published in February | Yunxin small class
习题11-3 计算最长的字符串长度 (15 分)
IEEE floating point mantissa even round - round to double
[day4 literature intensive reading] space – time interdependence: evidence against Asymmetric mapping between time and space
Exercise 9-5 address book sorting (20 points)
JsonParseException: Unrecognized token ‘username‘: was expecting表单提交登陆数据报错
Huawei equipment configuration hovpn
16 | 浮点数和定点数(下):深入理解浮点数到底有什么用?
【Day8 文献泛读】Space and Time in the Child‘s Mind: Evidence for a Cross-Dimensional Asymmetry
习题11-2 查找星期 (15 分)
5. Xuecheng project Alipay payment
学1个月爬虫就月赚6000?别被骗了,老师傅告诉你爬虫的真实情况
Application of Lora wireless communication module Lora technology in smart home light control
H.265编码原理入门
遇到表格,手动翻页太麻烦?我教你写脚本,一页展示所有数据
【Day15 文献泛读】Numerical magnitude affects temporal memories but not time encoding
2022年高处安装、维护、拆除操作证考试题库模拟考试平台操作
16 | floating point numbers and fixed-point numbers (Part 2): what is the use of a deep understanding of floating-point numbers?