mysql5.7.17安装教程分享给大家,供大家参考,具体内容如下

从官网下载zip https://www.mysql.com/downloads/

解压

D:\devtool\mysql-5.7.17-winx64\

D:\devtool\mysql-5.7.17-winx64\bin 加入环境变量

在任务栏 windows图标上右键->命令提示符(管理员), 以管理员身份运行 cmd , cd 到D:\devtool\mysql-5.7.17-winx64\bin。 不以管理员运行会出现权限不够被拒绝

依次运行以下三条命令

mysqld --initialize-insecure

会自动在 D:\devtool\mysql-5.7.17-winx64\ 下创建data目录,不必手工创建data目录

mysqld -install

这步是安装 mysql 服务, 如果不是管理员运行会提示 “Install/Remove of the Service Denied!” , 如果不cd到 mysql的bin目录 服务安装后路径默认在 C:\Program Files\MySQL\ , 启动服务会失败 提示 “

发生系统错误 2。 系统找不到指定的文件”

net start mysql

这步是启动mysql 服务, 如果没有第一步 这步会启动失败 并提示 “请键入 NET HELPMSG 3534 以获得更多的帮助”

启动mysql以后就可以 在cmd 中 输入 mysql -u root -p enter 完成初次登陆了

Welcome to the MySQL monitor. Commands end with ; or \g.Your MySQL connection id is 7Server version: 5.7.17Copyright (c) 2000, 2016, Oracle and/or its affiliates. All rights reserved.Oracle is a registered trademark of Oracle Corporation and/or itsaffiliates. Other names may be trademarks of their respectiveowners.Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.mysql> 

从MySQL5.7.6开始,安装MySQL提示“请键入 NET HELPMSG 3534 以获得更多的帮助”的解决办法

MySQL 5.6 for Windows 解压缩版配置安装

补充资料 :

启动mysql以后就可以 在cmd 中 输入 mysql -u root -p enter初次登陆了,按照以前的一些文章来看初始密码为空但是直接enter后出现“ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)” 搜索后MySQL ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)的真正原因 - 潇湘隐者 - 博客园 这篇文章是Linux上的,但是提到生成了一个随机密码, 直接告诉我可能在自动生成的data目录里能发现什么, 打开其中 “计算机名.err”的文件 (计算机名根据实际情况不同,不是本身这几个字) 搜索password 果然搜到, 尝试那个密码成功

可以选择用 --initialize-insecure 或者 --initialize 来初始化,--initialize-insecure 初始化root密码为空,如果用 --initialize来初始化,会产生一个随机密码

——摘自 mysql 5.7.11 zip 安装 - happymzw

官方文档上有:https://dev.mysql.com/doc/refman/5.7/en/windows-initialize-data-directory.html

https://dev.mysql.com/doc/refman/5.7/en/data-directory-initialization-mysqld.html

更多相关文章

  1. MySQL系列多表连接查询92及99语法示例详解教程
  2. Pycharm安装PyQt5的详细教程
  3. 【阿里云镜像】使用阿里巴巴DNS镜像源——DNS配置教程
  4. android用户界面之按钮(Button)教程实例汇
  5. 【Android(安卓)开发教程】Toast通知
  6. Android简易实战教程--第三十九话《Chronometer实现倒计时》
  7. android加密解密完美教程
  8. Android(安卓)SDK自带教程之BluetoothChat
  9. OpenGL ES教程VI之纹理贴图(原文对照)

随机推荐

  1. Android数据保存之文件保存
  2. Android使用MediaCodec将YUV硬编成H264
  3. Android判断当前的android设备是否处于联
  4. No resource found that matches the giv
  5. 解决 Android 模拟器 无法上网问题
  6. RelativeLayout布局及属性
  7. Android(安卓)寻找极限编码的「快感」
  8. 安卓开发小效果--走马灯
  9. Android 中Map应用所需的ApiKey的申请
  10. Android内部存储和外部存储