200字范文,内容丰富有趣,生活中的好帮手!
200字范文 > mysql 5.7.17 zip_win10下mysql 5.7.17 zip压缩包版安装教程

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

时间:2022-08-16 13:35:15

相关推荐

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

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

从官网下载zip /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 7

Server version: 5.7.17

Copyright (c) 2000, , 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>

参考资料:

从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

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

/doc/refman/5.7/en/data-directory-initialization-mysqld.html

以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持聚米学院。

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。