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

边栏推荐
- 【Day8 文献泛读】Space and Time in the Child‘s Mind: Evidence for a Cross-Dimensional Asymmetry
- JsonParseException: Unrecognized token ‘username‘: was expecting表单提交登陆数据报错
- 练习8-8 移动字母 (10 分)
- Bit operation in leetcode
- Pourquoi Google Search ne peut - il pas Pager indéfiniment?
- 2022年安全员-A证考题模拟考试平台操作
- Brief introduction to integrity
- 批改网高分短语&句型
- IEEE754标准中的4种舍入模式
- 2022年起重机司机(限桥式起重机)考试题模拟考试题库及模拟考试
猜你喜欢

Inventory | more than 20 typical security incidents occurred in February, with a loss of nearly $400million

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

Wireless communication comparison of si4463, si4438 and Si4432 schemes of wireless data transmission module

【Day9 文献泛读】On the (a)symmetry between the perception of time and space in large-scale environments

Teacher lihongyi, NTU -- tips for DNN regulation

Mobile terminal - picture timeline of swipe effect

Cloudcompare source code analysis: read ply file

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

动态规划之0-1背包问题(详解+分析+原码)
![[day1/5 literature intensive reading] speed constancy or only slowness: what drives the kappa effect](/img/17/5481a9e05de96eb0a2f89709e6120d.png)
[day1/5 literature intensive reading] speed constancy or only slowness: what drives the kappa effect
随机推荐
Why can't Google search page infinite?
[technology sharing] after 16 years, how to successfully implement the dual active traffic architecture of zhubajie.com
【Day2 文献精读】Time in the mind: Using space to think about time
SecurityContextHolder. getContext(). getAuthentication(). Getprincipal() gets username instead of userdetails
学1个月爬虫就月赚6000?别被骗了,老师傅告诉你爬虫的真实情况
习题8-5 使用函数实现字符串部分复制 (20 分)
Cloudcompare source code analysis: read ply file
Wireless communication comparison of si4463, si4438 and Si4432 schemes of wireless data transmission module
习题6-2 使用函数求特殊a串数列和 (20 分)
Small program startup performance optimization practice
Exercise 10-1 judge the three digits that meet the conditions (15 points)
Research Report on development trend and competitive strategy of global metallized high barrier film industry
Pourquoi Google Search ne peut - il pas Pager indéfiniment?
2022年安全员-A证考题模拟考试平台操作
Processus postgresql10
16 | floating point numbers and fixed-point numbers (Part 2): what is the use of a deep understanding of floating-point numbers?
Exercise 9-6 statistics of student scores by grade (20 points)
基于模板配置的数据可视化平台
习题8-2 在数组中查找指定元素 (15 分)
5. Xuecheng project Alipay payment