北囱悸弟还知否什么意思

mysql5.7.13.zip安装教程(windows)
作者:Pinnsvin
字体:[ ] 类型:转载 时间:
这篇文章主要为大家详细介绍了mysql5.7.13.zip安装教程,以及在安装mysql5.7.13.zip过程中遇到的问题,感兴趣的小伙伴们可以参考一下
这是我之前进行MySQL免安装版下载与配置的详细过程,先分享给大家。
1.&下载Mysql
官方:→downloads→选社区版本MySQL Community Edition(GPL)→点击Community(GPL)Downloads&&→MySQL Community Server(GPL)→选择自己要下载的版本(我是64位系统选择的是Windows (x86, 64-bit), ZIP Archive)→Downloads→No thanks, just start my download.
2.配置环境变量
先将下载好的文件解压到你要安装的位置,我解压到了D:\servers\mysql
方案1:新建环境变量,变量名称:MYSQL(一般大写、也可小写),变量值:D:\servers\mysql,向path中添加%MYSQL%/bin
方案2:直接向path中添加D:\servers\mysql\bin
3.安装MySQL服务
命令行进入mysql的bin目录下
&(注:进入D盘直接输入“D:“,使用“cd 文件夹名”进入某个文件夹 ,“cd..“返回上一目录)
输入service install或者mysqld install 提示安装成功
输入net start mysql 启动mysql服务
使用mysql –u root –p (此命令是root登入,为简写,详细格式自行查找),root默认密码为空,直接回车即可
4.mysql.ini
原文件为mysql-defult.ini
修改其中的basedir=D:/servers/mysql
&&&&&&&&&&&&&&&&datadir=D:/servers/mysql/data
注意:路径之间为“/“,如果直接复制过来没有改会出现”系统错误1067“
系统错误5& 使用管理员权限打开命令提示符
5.连接mysql
命令提示符下输入:mysql -uroot -p
root默认密码为空,直接回车即可进入
按照我之前安装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下就不知道如何解决了,不过最后还是找到了解决方法。&
解决方法:
然而并不是缺少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\bin
C:\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
T14:07:20. [Warning] TIMESTAMP with implicit DEFAULT value is
deprecated. Please use --explicit_defaults_for_timestamp server option (see doc
umentation for more details).
T14:07:22. [Warning] InnoDB: New log files created, LSN=45790
T14:07:23. [Warning] InnoDB: Creating foreign key constraint
system tables.
T14:07:23. [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: 79c-11e6-a6179b7.
T14:07:23. [Warning] Gtid table is not ready to be used. Tabl
e 'mysql.gtid_executed' cannot be opened.
T14:07:23. [Note] A temporary password is generated for root@
localhost: rr9.8h74twfR
C:\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. C or \g.
Your MySQL connection id is 2
Server version: 5.7.13
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
Type '' 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
C:\mysql-5.7.13-winx64\bin&mysql -uroot
Welcome to the MySQL monitor. C or \g.
Your MySQL connection id is 3
Server version: 5.7.13 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
Type '' or '\h' for help. Type '\c' to clear the current input statement.
mysql& exit
C:\mysql-5.7.13-winx64\bin&
精彩专题分享:
以上就是mysql5.7.13.zip安装配置方法,以及安装过程中遇到的问题解决方法,希望对大家的学习有所帮助。
您可能感兴趣的文章:
大家感兴趣的内容
12345678910
最近更新的内容
常用在线小工具随笔 - 213&
评论 - 61&
&&&&&&&&&&&
1.下载mysql最新版本。
2.解压到文件夹。
D:\software\mysql\mysql5.7a
将my-default.ini 复制为 my.ini
3.编辑my.ini
# These are commonly set, remove the # and set as required.
basedir ="D:/software/mysql/mysql57a"
datadir ="D:/software/mysql/mysql57a/data"
修改安装目录和数据目录。
4.安装mysql服务。
使用管理员命令模式。
去到 bin目录。
执行命令 mysqld -install mysql57a
mysqld --initialize --user=mysql
在data生成目录如下:
6.启动mysql 服务。
net start mysql57a
7.免密码登录配置。
第一次登录一般没有密码,如果不能登录按照下面的步骤操作。
mysql &uroot &p &P3308
在my.ini 增加配置
skip-grant-tables
重启服务,在重试登录。
mysql &uroot &p &P3308
这一次不用在输入密码即可登录了。
执行 use mysql
update mysql.user set authentication_string=password('root') where user='root' ;
skip-grant-tables 配置。
重启mysql 服务。
mysql &uroot &proot &P3308 然后就可以了。
阅读(...) 评论()建议使用以上版本或、浏览器访问本站,获得更好的用户体验。&&&&mysql安装文件官网现在方法
mysql安装文件官网现在方法
用图文介绍从mysql官网下载mysql安装文件的教程
嵌到我的页面
<input type="text" readonly="true" value="">
若举报审核通过,可奖励20下载分
被举报人:
举报的资源分:
请选择类型
资源无法下载
资源无法使用
标题与实际内容不符
含有危害国家安全内容
含有反动色情等内容
含广告内容
版权问题,侵犯个人或公司的版权
*详细原因:
VIP下载&&免积分60元/年(1200次)
您可能还需要
数据库下载排行}

我要回帖

更多关于 囱怎么读 的文章

更多推荐

版权声明:文章内容来源于网络,版权归原作者所有,如有侵权请点击这里与我们联系,我们将及时删除。

点击添加站长微信