在线精品99_中国九九盗摄偷拍偷看_91免费版在线观看_91.app_91高清视频在线_99热最新网站

windows中Mysql 5.7如何绿色安装

97次阅读
没有评论

共计 2779 个字符,预计需要花费 7 分钟才能阅读完成。

这篇文章主要介绍了 windows 中 Mysql 5.7 如何绿色安装,具有一定借鉴价值,感兴趣的朋友可以参考下,希望大家阅读完这篇文章之后大有收获,下面让丸趣 TV 小编带着大家一起了解一下。

1.1 
下载

http://dev.mysql.com/downloads/mysql/
 
下载地址, 在下拉框中选择相应的版本

1.2 
安装

下载下来的绿色安装包,直接解压为 E:\mysql

1.3 
编辑 my.ini 文件,

将 mydefault.ini copy 一份出来,就该其中的参数.

在 mysqld 中加入如下内容

  basedir= E:\mysql\

  datadir= E:\mysql\data

  port=3306

#skip-grant-tables

E:\mysql\bin mysqld –initialize

2016-09-06T13:57:01.349392Z 0 [Warning] TIMESTAMP with implicit
DEFAULT value is

 deprecated. Please use
–explicit_defaults_for_timestamp server option (see doc

umentation for more details).

2016-09-06T13:57:01.353393Z 0
[ERROR]
–initialize specified but the data direct

ory has files in it.
Aborting.

2016-09-06T13:57:01.354393Z 0 [ERROR] Aborting

出现了如上错误,是由于之前在
data 文件夹中有文件导致的,删掉 data 下所有的文件,重新执行 mysqld.exe –initialize 命令 ok

E:\mysql\bin mysqld.exe –initialize

E:\mysql\bin mysqld.exe –install

Service successfully installed.

E:\mysql\bin net start mysql

MySQL
服务正在启动
.

MySQL
服务已经启动成功。

E:\mysql\bin mysql -h localhost -u root -p

Enter password: ****

ERROR 1045 (28000): Access denied for user root @ localhost (using
password: Y

ES)

1.4 修改密码

没办法修改密码吧

在 mysqld 下加入

skip-grant-tables

E:\mysql\bin net stop mysql

MySQL
服务正在停止.

MySQL
服务已成功停止。

E:\mysql\bin net start mysql

MySQL
服务正在启动
.

MySQL
服务已经启动成功。

E:\mysql\bin mysql -u root -p

Enter password:

Welcome to the MySQL monitor.  Commands end with ; or \g.

Your MySQL connection id is 2

Server version: 5.7.14 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

mysql update user set
password=password(mysql) where user= root

ERROR 1054 (42S22): Unknown column
password in field list

出现这个错误是由于 mysql 5.7 后 password 栏位变成 authentication_string

mysql update user set
authentication_string=password(mysql) where user= root

;

Query OK, 1 row affected, 1 warning
(0.10 sec)

Rows matched: 1  Changed: 1  Warnings: 1

mysql flush privileges;

Query OK, 0 rows affected (0.00 sec)

mysql quit

Bye

将 my.ini 中的 skip-grant-tables 注释掉,重启 mysql 服务

E:\mysql\bin mysql -h localhost
-u root -p

Enter password: *****

Welcome to the MySQL monitor.  Commands end with ; or \g.

Your MySQL connection id is 2

Server version: 5.7.14

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 show databases;

ERROR 1820 (HY000): You must reset
your password using ALTER USER statement befo

re executing this statement.

mysql alter user
root @ localhost identified by mysql

Query OK, 0 rows affected (0.00 sec)

mysql show databases;

+——————–+

| Database  |

+——————–+

| information_schema |

| mysql  |

| performance_schema |

| sys  |

+——————–+

4 rows in set (0.00 sec)

感谢你能够认真阅读完这篇文章,希望丸趣 TV 小编分享的“windows 中 Mysql 5.7 如何绿色安装”这篇文章对大家有帮助,同时也希望大家多多支持丸趣 TV,关注丸趣 TV 行业资讯频道,更多相关知识等着你来学习!

正文完
 
丸趣
版权声明:本站原创文章,由 丸趣 2023-07-27发表,共计2779字。
转载说明:除特殊说明外本站除技术相关以外文章皆由网络搜集发布,转载请注明出处。
评论(没有评论)
主站蜘蛛池模板: 久久精品人人做人人爽 | 久久亚洲精品无码aⅴ大香 久久亚洲精品无码av | 毛片久久久| 图片区亚洲色图 | 欧美在线视频观看 | 久久97久久97精品免视看秋霞 | 欧美成人黑人视频免费观看 | 国产精品久久国产精品99 | 国产情侣普通话刺激对白 | 爱看精品福利视频观看 | 欧美bbw 极品另类 | 亚洲视频在线观看免费 | a级毛片高清免费视频 | 最新中文字幕视频 | 99re在线播放视频 | 午夜一区欧美二区高清三区 | 亚洲国产成人精品无码区在线秒播 | 国产日韩欧美亚洲 | 亚洲国产成人在线观看 | 久久精品国产亚洲av电影 | av无码天堂一区二区三区 | 久久久精品免费热线观看 | 一级做受毛片免费大片 | 一二三四在线观看免费高清中文网 | 日韩精品区一区二区三vr | 亚洲αvx9| 爱爱精品视频 | 91网站在线看 | 美女隐私视频网站 | 国产丝袜 | 久久久亚洲精品国产 | 久久99久久成人免费播放 | 亚洲人成影院在线无码按摩店 | 99热在线精品免费播放6 | 狠狠色伊人亚洲综合第8页 狠狠色综合7777久夜色撩人 | 久久天天躁狠狠躁夜夜96流白浆 | 在线观看片成人免费视频 | 美女视频黄频a免费高清不卡软件 | 亚洲人成网7777777国产 | 久久精品国产精品2020 | 99久久综合久中文字幕 |