1、下载

http://cdn.mysql.com//Downloads/MySQL-5.7/mysql-5.7.11-winx64.zip

2.解压缩zip包;

D:\Program Files\mysql-5.7.-winx64

3.配置环境变量,

3.1 添加path路径,

D:\Program Files\mysql-5.7.-winx64\bin

3.2.修改mysql-default.ini配置文件,

# These are commonly set, remove the # and set as required.
# basedir = .....
# datadir = .....
# port = .....
# server_id = .....

改为

# These are commonly set, remove the # and set as required.
basedir = D:\Program Files\mysql-5.7.-winx64
datadir = D:\Program Files\mysql-5.7.-winx64\Data
port =
# server_id = .....

4.以管理员身份进入命令提示符 cmd

进入mysql的bin目录下,

Microsoft Windows [版本 6.3.9600]
(c) 2013 Microsoft Corporation。保留所有权利。 C:\Users\Administrator>cd D:
D:\ C:\Users\Administrator>cd D:\Program Files\mysql-5.7.11-winx64\bin C:\Users\Administrator>d: D:\Program Files\mysql-5.7.11-winx64\bin>

执行mysqld.exe --initialize 命令,

D:\Program Files\mysql-5.7.11-winx64\bin>mysqld.exe --initialize

D:\Program Files\mysql-5.7.11-winx64\bin>

创建了data目录

5.执行 mysqld -install命令

D:\Program Files\mysql-5.7.11-winx64\bin>mysqld -install
Service successfully installed. //成功安装服务

6.执行mysqld.exe -nt --skip-grant-tables

注意:窗口无反应

 Microsoft Windows [版本 6.3.]
(c) Microsoft Corporation。保留所有权利。 C:\Users\Administrator>cd D:
D:\ C:\Users\Administrator>cd D:\Program Files\mysql-5.7.-winx64\bin C:\Users\Administrator>d: D:\Program Files\mysql-5.7.-winx64\bin>mysqld.exe --initialize D:\Program Files\mysql-5.7.-winx64\bin>mysqld -install
Service successfully installed. //服务安装成功 D:\Program Files\mysql-5.7.-winx64\bin>mysqld.exe -nt --skip-grant-tables

7.重新打开dos窗口,执行mysql -u root

进入mysql命令行,执行命令use mysql; update user set authtication_string=Password('123456') where user="root"; set password=Password('123456');

 Microsoft Windows [版本 6.3.]
(c) Microsoft Corporation。保留所有权利。 C:\Users\Administrator>mysqld.exe -nt --skip-grant-tables C:\Users\Administrator>mysql -u root
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is
Server version: 5.7. MySQL Community Server (GPL) Copyright (c) , , Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. mysql> use mysql
Database changed
mysql> update user set authtication_string=Password('') where user="root"
-> set password=Password('')
->

8.在任务管理器中终止mysqld进程,开启mysql服务。

安装完成。

mysql-5.7.11-winx64.zip 安装配置的更多相关文章

  1. Mysql在windows下的免安装配置步骤和重新安装的步骤

    windows下mysql免安装配置 1. 下载mysql免安装压缩包 下载mysql-5.6.22-winx64.zip 解压到本地D:\mysql-5.6.22-winx64 2. 修改配置文件 ...

  2. MySQL Community Server 8.0.11下载与安装配置

    一.下载 1.选择合适的安装包,我在这里下载的是目前最新的安装包,8.0.11,而且我选择下载的是解压版的,安装版的话,安装会比较麻烦. MySQL Community Server下载链接:http ...

  3. MySQL 5.7 解压版安装配置

    测试环境 系统:Windows 10专业版 版本:MySQL Server 5.7.14   提纲 修改配置文件 初始化 安装服务.启动服务 修改root密码   步骤 1.解压安装包 在MySQL官 ...

  4. MHA+Atlas+mysql一主一从开启gtid安装配置与实验

    各节点架构 (说明:生产环境有两个节点可以组成一套完整集群,我是测试环境,因此对于manager以及atlas和binlog server都是单点,如果生产环境,相应的将manager以及atlas和 ...

  5. hive0.11的编译/安装/配置

    一.获取hive 0.11文件 1.直接在apache网站下载release版 2.自己下载源码编译.方法: git clone https://github.com/amplab/hive.git ...

  6. MySql-5.7.17 -winx64的安装配置

    一.下载软件 1. 进入mysql官网,登陆自己的Oracle账号(没有账号的自己注册一个),下载Mysql-5.7.17,下载地址:http://dev.mysql.com/downloads/my ...

  7. mysql 5.1.7.17 zip安装 和 隔段时间服务不见了处理

    Mysql社区版下载地址:http://dev.mysql.com/downloads/mysql/ 因为我的系统版本是64,因此这里下载x64版本.下载完之后解压至D:\Dev\Mysql(即为my ...

  8. nodejs zip 安装配置

    1.下载 下载地址:https://nodejs.org/zh-cn/download/ 选择相应的版本下载 2.解压缩 将文件解压到要安装的位置,并新建两个目录 node-global :npm全局 ...

  9. window7环境MySql5.7 zip安装配置教程

    1.将zip压缩包解压到一个目录下,并改名为mysql5.7 我的是放在D:\web\mysql5.7下 2.修改my-default.ini文件 下面几项是必填的,否则无法启动 basedir = ...

随机推荐

  1. 你真的会玩SQL吗?你所不知道的 数据聚合

    你真的会玩SQL吗?系列目录 你真的会玩SQL吗?之逻辑查询处理阶段 你真的会玩SQL吗?和平大使 内连接.外连接 你真的会玩SQL吗?三范式.数据完整性 你真的会玩SQL吗?查询指定节点及其所有父节 ...

  2. How do servlets work-Instantiation, sessions, shared variables and multithreading[reproduced]

    When the servletcontainer (like Apache Tomcat) starts up, it will deploy and load all webapplication ...

  3. 微信支付:H5吊起支付API,不显示“确认支付、输入密码”界面

    使用公众号进行支付,官方开发帮助文档: https://pay.weixin.qq.com/wiki/doc/api/jsapi.php?chapter=7_1 其业务流程如下: 按照业务流程进行开发 ...

  4. 通过pycharm使用git[图文详解]

    前言 使用git+pycharm有一段时间了,算是稍有点心得,这边整理一下,可能有的方法不是最优,欢迎交流,可能还是习惯敲命令去使用git,不过其实pycharm已经帮忙做了很多了,我们可以不用记住那 ...

  5. 从架构层面谈web加载优化(个人整理)

    最近听了阿里一位大牛的讲座,讲web架构优化对网页加载的影响,看完之后对他所讲的一些优化方法进行一些总结和整理,发现收获还是蛮多的,下面多为个人整理和个人见解,希望有说的不对的,能及时指出 1.DNS ...

  6. filter 过滤器(监听)

    Filter 过滤器 1.简介 Filter也称之为过滤器,它是Servlet技术中最实用的技术,WEB开发人员通过Filter技术,对web服务器管理的所有web资源:例如Jsp, Servlet, ...

  7. 关于Linux下转换oracle字符集

    前阵子给以同事导oracle数据库,但是发现导入后数据都是乱码,下面是自己解决这个问题的一些小整理. 比如: #su oralce $export ORACLE_SID=orcl $export OR ...

  8. 智软科技医疗器械GSP监管软件通过多省市药监局检查

    提供医疗器械GSP监管软件,通过多省市药监局检查,符合2016年最新GSP监管条例的要求. 企业客户列表 温岭市万悦医疗器械有限公司 杭州市上善医疗器械有限公司 武汉明德生物科技股份有限公司 http ...

  9. 做linux运维工程师,必须要掌握以下几个工具

    linux系统如果是学习可以选用redhat或centos,特别是centos在企业中用得最多,当然还会有其它版本的,但学习者还是以这2个版本学习就行,因为这两个版本都是兄弟,没区别的,有空可以再研究 ...

  10. HTML的doctype和编码

    DOCTYPE Doctype是为了告诉浏览器用哪种版本的html去解析指令,必须位于第一行,在某些版本中需要引入DTD,html5无需引入DTD 中文乱码 原因 浏览器解析代码的编码格式与源代码编码 ...