源码网商城,靠谱的源码在线交易网站 我的订单 购物车 帮助

源码网商城

win10下mysql 5.7.17 zip压缩包版安装教程

  • 时间:2020-07-06 05:09 编辑: 来源: 阅读:
  • 扫一扫,手机访问
摘要:win10下mysql 5.7.17 zip压缩包版安装教程
mysql5.7.17安装教程分享给大家,供大家参考,具体内容如下 从官网下载zip [url=https://www.mysql.com/downloads/]https://www.mysql.com/downloads/[/url] [b]解压[/b]  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 7
Server version: 5.7.17

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> 
[b]参考资料:[/b] [url=http://www.1sucai.cn/article/107759.htm]从MySQL5.7.6开始,安装MySQL提示“请键入 NET HELPMSG 3534 以获得更多的帮助”的解决办法[/url] [url=http://www.1sucai.cn/article/58058.htm]MySQL 5.6 for Windows 解压缩版配置安装[/url] [b]补充资料 :[/b] 启动mysql以后就可以 在cmd 中 输入 mysql -u root -p  enter初次登陆了,按照以前的一些文章来看初始密码为空但是直接enter后出现“ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)”  搜索后[url=http://www.cnblogs.com/kerrycode/p/4368312.html]MySQL ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)的真正原因 - 潇湘隐者 - 博客园 [/url] 这篇文章是Linux上的,但是提到生成了一个随机密码, 直接告诉我可能在自动生成的data目录里能发现什么, 打开其中 “计算机名.err”的文件 (计算机名根据实际情况不同,不是本身这几个字) 搜索password 果然搜到, 尝试那个密码成功 可以选择用 --initialize-insecure 或者 --initialize 来初始化,--initialize-insecure 初始化root密码为空,如果用 --initialize来初始化,会产生一个随机密码 ——摘自 [url=http://www.1sucai.cn/article/107763.htm]mysql 5.7.11 zip 安装[/url] - happymzw  官方文档上有:[url=https://dev.mysql.com/doc/refman/5.7/en/windows-initialize-data-directory.html]https://dev.mysql.com/doc/refman/5.7/en/windows-initialize-data-directory.html[/url] [url=https://dev.mysql.com/doc/refman/5.7/en/data-directory-initialization-mysqld.html]https://dev.mysql.com/doc/refman/5.7/en/data-directory-initialization-mysqld.html[/url] 以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持编程素材网。
  • 全部评论(0)
联系客服
客服电话:
400-000-3129
微信版

扫一扫进微信版
返回顶部