当前位置:网站首页>mysql-5.7.30-winx64免安装版下载安装教程
mysql-5.7.30-winx64免安装版下载安装教程
2022-06-28 23:15:00 【waiting971118】
1.Mysql的下载
MySQL Community Server5.7.30 下载地址https://downloads.mysql.com/archives/community/
如图所示,选择自己要的版本进行下载:
2.Mysql的解压
将下载的压缩包解压到自己想要安装的目录下:D:\Program Files\mysql-5.7.30-winx64
3.Mysql环境变量配置
(1)添加MYSQL_HOME系统变量,此处的变量值为mysql的解压目录
变量名:MYSQL_HOME
变量值:D:\Program Files\mysql-5.7.30-winx64
(2)添加环境变量到Path中
%MYSQL_HOME%\bin


4.新建配置文件my.ini
在解压的目录下新建一个文件my.ini,将下面的配置放到my.ini文件中,其中将basedir和datadir修改为mysql的解压路径中,其中datadir后面的\data文件夹不用创建,配置完成后会自动创建。
[mysql]
default-character-set=utf8
[mysqld]
port = 3306
# 设置mysql的安装目录(修改为解压的路径)
basedir=D:\Program Files\mysql-5.7.30-winx64
# 设置mysql数据库的数据的存放目录,必须是data
datadir=D:\Program Files\mysql-5.7.30-winx64\data
max_connections=200
# mysql端口
character-set-server=utf8
# 创建新表时将使用的默认存储引擎
default-storage-engine=INNODB
4.命令行模式下安装mysql
执行命令下面命令
mysqld install
mysqld --initialize-insecure --console
net start mysql
mysqladmin -u root -p password 123456
exit
net stop myql
(1)以管理员身份运行cmd,切换到解压的mysql的bin目录下,执行mysqld install安装数据库,
(2)执行mysqld --initialize-insecure --console,生成一个没有密码的root用户
(3)执行net start mysql 启动mysql服务器
(4)执行mysqladmin -u root -p password 123456修改密码(可以不修改,不修改表示没有密码),由于密码为空,所以旧密码不用输入,直接回车就可以
(5) 执行命令:mysql -u root -p并输入密码,用户登录;
执行命令:exit用户退出;
执行命令:net stop mysql关闭服务器。
边栏推荐
- 收藏 | VLOOKUP函数的这些妙用你都知道吗?
- [matlab]函数定义与使用
- C interview questions_ 20220627 record
- O & M troubleshooting - use hcache plug-in to troubleshoot excessive buffer/cache occupancy
- 两栏布局左边图片显示部分由右边内容高度决定
- [flutter issues Series title 71] Mutual Conversion between uint8list and Image in flutter
- With a monthly salary of 60000 yuan, such people began to be robbed after the Internet "reduced costs and increased efficiency"
- Chapter V virtual memory exercise
- TDD和自动化测试
- Is it safe and reliable for changtou school to help open a securities account? How to drive
猜你喜欢

CIN at QT (the clearest tutorial in the whole network)

强大的开源API接口可视化管理平台-YApi

带链接跳转的微信红包封面制作教程和使用指南

Linq连表查询

Leetcode detailed explanation of stack type
![[stm32 Hal library] serial port communication](/img/2c/23a2ecf75141b8f38ab99ac6b2eaef.png)
[stm32 Hal library] serial port communication
![LeetCode 324 摆动排序 II[排序 双指针] HERODING的LeetCode之路](/img/41/b8ba8d771b7224eac1cc8c54fe9d29.png)
LeetCode 324 摆动排序 II[排序 双指针] HERODING的LeetCode之路

CMake教程(一)

lock4j--分布式锁中间件--使用/实例

【深度学习】(3) Transformer 中的 Encoder 机制,附Pytorch完整代码
随机推荐
Cs5463 code module analysis (including download link)
【Word 教程系列第 1 篇】如何去除 Word 表格中的箭头
Tanghongbin, Yaya live CTO: to truly localize, the product should not have the attribute of "origin"
[deep learning] (3) encoder mechanism in transformer, complete pytoch code attached
Didn't find an internship. He summed it up
CMake教程(一)
2022-06-28: what does the following golang code output? A:true; B:false; C:panic; D: Compilation failed. package main import “fm
This simple little function saves 213 hours for our production research team in half a year
Is it safe and reliable for changtou school to help open a securities account? How to drive
2022-06-28:以下golang代码输出什么?A:true;B:false;C:panic;D:编译失败。 package main import “fm
C語言-單詞分析解析
[matlab] function definition and use
邂逅阿维塔 11:强产品力下久违的新鲜感
Is the account opening of Guosheng securities really safe and reliable
强大的开源API接口可视化管理平台-YApi
油猴脚本学习
Linq连表查询
机器学习4-降维技术
LeetCode 324 摆动排序 II[排序 双指针] HERODING的LeetCode之路
非科班!自学之路!