作者:milksoul | 来源:互联网 | 2022-03-18 17:24
mysql 5.7.27安装教程记录如下,分享给大家
第一步:解压文件夹:
![](https://img.php1.cn/3cd4a/9a92/9f3/3521aee062520745.png)
第二步:配置环境变量
![](https://img.php1.cn/3cd4a/9a92/9f3/a44d7e6a972b74b0.png)
![](https://img.php1.cn/3cd4a/9a92/9f3/b12fe374db5b1dcb.png)
第三步:在解压文件夹下面新建my.ini文件
![在这里插入图片描述](https://img.php1.cn/3cd4a/9a92/9f3/48ed5188473cf088.png)
[mysqld]
#设置3306端
port = 3306
# 设置mysql的安装目录
basedir=E:\MySQl\mysql-5.7.27-winx64
# 设置mysql数据库的数据的存放目录
datadir=E:\MySQl\mysql-5.7.27-winx64\data
# 允许最大连接数
max_cOnnections=200
# 服务端使用的字符集默认为8比特编码的latin1字符集
character-set-server=utf8
# 创建新表时将使用的默认存储引擎
default-storage-engine=INNODB
sql_mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES
[mysql]
# 设置mysql客户端默认字符集
default-character-set=utf8
第四步:在DOS窗口安装MySQL:
![](https://img.php1.cn/3cd4a/9a92/9f3/d3de838011504c7b.png)
![](https://img.php1.cn/3cd4a/9a92/9f3/8a37ee1b8629978f.png)
第五步:设置MySQL密码:
先停止mysql:
![](https://img.php1.cn/3cd4a/9a92/9f3/7d09039a35baea23.png)
找到my.ini文件:在mysqld字段下任意一行添加skip-grant-tables
![](https://img.php1.cn/3cd4a/9a92/9f3/7848c092451d6efa.png)
![](https://img.php1.cn/3cd4a/9a92/9f3/a11c20995fa4c4cb.png)
完成以上命令后,回到my.ini文件删除skip-grant-tables
![](https://img.php1.cn/3cd4a/9a92/9f3/947a5d36c80d8315.png)
精彩专题分享:
mysql不同版本安装教程
mysql5.7各版本安装教程
mysql5.6各版本安装教程
mysql8.0各版本安装教程
以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持。