按照我之前安装5.6的安装方法(MySQL免安装版下载与配置)安装5.7的时候出现问题:

mysql服务无法启动,服务没有报任何错误

其实在这学期开始学习mysql的时候,就听老师同学说,登录不了的问题,当时没有在意,也是因为电脑上早就安装了mysql5.6,也就没有在意这个问题。这两天win10系统出问题,重装了win7,安装5.7的时候出现了这个问题。

之前的版本默认密码为空,具体版本不太清楚,反正5.6密码是空。5.7的安全性提升,在linux安装5.7的时候,安装完成后会生成一个随机性密码,存储在root/.mysql_secret中,如果没有这个文件,去系统日志中查找password,就应该能找到。

但是windows下就不知道如何解决了,不过最后还是找到了解决方法。

解决方法:

来自:windows MySql 5.7.9,启动不了。缺少data

然而并不是缺少data文件夹,将my-default.ini文件改名为my.ini,移动到bin/目录下,在bin/下执行命令 mysqld --initialize --user=mysql --console ,这条命令估计是初始化的命令

然后启动服务 net start mysql

命令行显示贴在这

Microsoft Windows [版本 6.1.7601]
版权所有 (c) 2009 Microsoft Corporation。保留所有权利。C:\Windows\system32>cd ..C:\Windows>cd ..C:\>cd mysql-5.7.13-winx64/Boot
系统找不到指定的路径。C:\>cd mysql-5.7.13-winx64\binC:\mysql-5.7.13-winx64\bin>mysqld install
Service successfully installed.C:\mysql-5.7.13-winx64\bin>net start mysql
MySQL 服务正在启动 .
MySQL 服务无法启动。服务没有报告任何错误。请键入 NET HELPMSG 3534 以获得更多的帮助。C:\mysql-5.7.13-winx64\bin>net start mysql
MySQL 服务正在启动 .
MySQL 服务无法启动。服务没有报告任何错误。请键入 NET HELPMSG 3534 以获得更多的帮助。C:\mysql-5.7.13-winx64\bin>mysqld --initialize --user=mysql --console
2016-06-21T14:07:20.922112Z 0 [Warning] TIMESTAMP with implicit DEFAULT value isdeprecated. Please use --explicit_defaults_for_timestamp server option (see doc
umentation for more details).
2016-06-21T14:07:22.669315Z 0 [Warning] InnoDB: New log files created, LSN=457902016-06-21T14:07:23.106116Z 0 [Warning] InnoDB: Creating foreign key constraint
system tables.
2016-06-21T14:07:23.308916Z 0 [Warning] No existing UUID has been found, so we a
ssume that this is the first time that this server has been started. Generating
a new UUID: 79c8386d-37b9-11e6-9709-74867a6179b7.
2016-06-21T14:07:23.340116Z 0 [Warning] Gtid table is not ready to be used. Tabl
e 'mysql.gtid_executed' cannot be opened.
2016-06-21T14:07:23.355716Z 1 [Note] A temporary password is generated for root@
localhost: rr9.8h74twfRC:\mysql-5.7.13-winx64\bin>mysql -uroot -prr9.8h74twfR
mysql: [Warning] Using a password on the command line interface can be insecure.
ERROR 2003 (HY000): Can't connect to MySQL server on 'localhost' (10061)

C:\mysql-5.7.13-winx64\bin>net start mysql
MySQL 服务正在启动 .
MySQL 服务已经启动成功。C:\mysql-5.7.13-winx64\bin>mysql -uroot -prr9.8h74twfR
mysql: [Warning] Using a password on the command line interface can be insecure.
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 2
Server version: 5.7.13Copyright (c) 2000, 2016, 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> set password=password('');
Query OK, 0 rows affected, 1 warning (0.00 sec)mysql> exit
ByeC:\mysql-5.7.13-winx64\bin>mysql -uroot
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 3
Server version: 5.7.13 MySQL Community Server (GPL)Copyright (c) 2000, 2016, 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> exit
ByeC:\mysql-5.7.13-winx64\bin>

View Code

转载于:https://www.cnblogs.com/pinnsvin/p/5605254.html

mysql5.7.13.zip安装(windows)相关推荐

  1. python安装mysql数据库_windows10安装mysql-8.0.13(zip安装)~Python安装mysql

    windows10安装mysql-8.0.13(zip安装) 安装环境说明 系统版本:windows10 mysql版本:mysql-8.0.13-winx64.zip 下载地址:http://mir ...

  2. zip安装mysql没有软件,windows10系统安装mysql-8.0.13(zip安装) 的教程详解

    安装环境说明 解压安装包 •解压路径:D:\develop\software •解压后mysql根目录:D:\develop\software\mysql-8.0.13-winx64 原则: 安装目录 ...

  3. mysql-5.7.11-winx64.zip 安装配置

    1.下载 http://cdn.mysql.com//Downloads/MySQL-5.7/mysql-5.7.11-winx64.zip 2.解压缩zip包: D:\Program Files\m ...

  4. mysql 5.6.31 winx64_详解介绍MySQL5.6.31winx64.zip安装配置的图文教程

    这篇文章主要介绍了MySQL5.6.31 winx64.zip 安装配置教程详解,非常不错,具有参考借鉴价值,需要的朋友可以参考下 #1. 下载 # #2.解压到本地 修改必要配置my*.ini #3 ...

  5. mysql-5.7.21-winx64.zip安装教程

    1.去官网下载满足系统要求的版本 (mysql-5.7.21-winx64.zip) 2.解压到指定目录(C:\Program Files\mysql-5.7.21-winx64) 3.配置环境变量, ...

  6. Mysql:mysql-5.7.27-winx64.zip安装教程

    一.内容介绍 MySQL 是最流行的关系型数据库管理系统之一,很有学习价值,本文介绍mysql-5.7.27-winx64.zip的安装教程. 二.前置工作 1.确保你的电脑是64位操作系统,本文使用 ...

  7. mysql5.7.13_mysql5.7.13.zip安装(windows)

    Microsoft Windows [版本 6.1.7601] 版权所有 (c)2009Microsoft Corporation.保留所有权利. C:\Windows\system32>cd ...

  8. mysql5.7.20-winx64.zip安装

    1.官网下载mysql https://dev.mysql.com/downloads/mysql/ 2.解压到D盘 路径:D:\mysql-5.7.20-winx64 3.配置环境变量 变量名:MY ...

  9. mysql5.7.13编译安装_MySQL 5.7.13 源码编译安装配置方法图文教程

    安装环境:centos7 64位 mini版 官网源码编译安装文档: 一.系统安装条件 官方文档说明: 1> cmake mysql使用cmake跨平台工具预编译源码,用于设置mysql的编译参 ...

最新文章

  1. 培训沙龙准备事项-看板记录
  2. 解决iOS机型点击输入框不能聚焦的问题
  3. 路由器学习之静态路由实验
  4. iframe有那些缺点
  5. 启动azkaban报错_解决启动Azkaban报错问题:java.lang.NoSuchMethodError: com.google.comm
  6. c语言int超出范围字符串,Go返回int64类型字段超出javascript Number范围的解决方法...
  7. python是脚本语言_上海python脚本语言课程
  8. python在信号处理的应用_Python和信号处理程序
  9. java1.8移除apt,java 1.8上的maven-enunciate-plugin现在从最新的JDK中删除了(即java注释处理工具)...
  10. Centos系统修改远程端口
  11. NOIP学习之综合应用:163.出书最多
  12. 联想笔记本e43l_联想昭阳e43l
  13. 情感日记:用科学的方法追女孩(转)
  14. 【复杂网络】当机器学习遇上复杂网络:解析微信朋友圈 Lookalike 算法
  15. Android仿qq登陆界面
  16. 向量点积衡量相似度_点积相似度、余弦相似度、欧几里得相似度
  17. ESP32搞的NES游戏掌机
  18. 在线免费网盘空间统计
  19. 【头歌】旅游网站大数据分析-数据抓取
  20. 从来只留一场梦 一场春梦成白头 上软疑似解体 忆仙剑而作

热门文章

  1. PHP.ini的register_globals参数
  2. android stub.asinterface是什么意思
  3. Ubuntu16.04 使用sudo cat EOF 编辑文件,提示Permission denied错误的解决办法
  4. ELF 文件 动态链接 - 地址无关代码(GOT)
  5. [Effective JavaScript 笔记]第59条:避免过度的强制转换
  6. 回头再看N层架构(图解)
  7. cmd下常用的一些命令
  8. C-#数据库方面好书
  9. 给一个Table添加合计行[Tips]
  10. vue中v-model是个啥?