激情久久久_欧美视频区_成人av免费_不卡视频一二三区_欧美精品在欧美一区二区少妇_欧美一区二区三区的

服務器之家:專注于服務器技術及軟件下載分享
分類導航

Mysql|Sql Server|Oracle|Redis|MongoDB|PostgreSQL|Sqlite|DB2|mariadb|Access|數據庫技術|

服務器之家 - 數據庫 - Mysql - mysql 5.7.16 winx64安裝配置方法圖文教程

mysql 5.7.16 winx64安裝配置方法圖文教程

2020-07-02 16:22N3verL4nd Mysql

這篇文章主要為大家分享了mysql 5.7.16winx64安裝配置方法圖文教程,感興趣的朋友可以參考一下

針對之前安裝mysql的筆記進行了總結,分享給大家。

版本:MySQL-5.7.16-winx64
平臺:Windows 7 x64

1、進入mysql主目錄(建議將其移到C或D盤的根目錄,并改名為mysql)
2、配置path環境變量(如D:\JAVA\mysql)添加到環境變量中。
3、mysql主目錄下的my-default.ini文件改名為my.ini,最簡單配置如下

?
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# For advice on how to change settings please see
# http://dev.mysql.com/doc/refman/5.7/en/server-configuration-defaults.html
# *** DO NOT EDIT THIS FILE. It's a template which will be copied to the
# *** default location during install, and will be replaced if you
# *** upgrade to a newer version of MySQL.
 
[mysqld]
 
# Remove leading # and set to the amount of RAM for the most important data
# cache in MySQL. Start at 70% of total RAM for dedicated server, else 10%.
# innodb_buffer_pool_size = 128M
 
# Remove leading # to turn on a very important data integrity option: logging
# changes to the binary log between backups.
# log_bin
 
# These are commonly set, remove the # and set as required.
basedir = D:\JAVA\mysql
datadir = D:\JAVA\mysql\data
port = 3306
max_connections = 20
character-set-server = utf8
 
 
# Remove leading # to set options mainly useful for reporting servers.
# The server defaults are faster for transactions and fast SELECTs.
# Adjust sizes as needed, experiment to find the optimal values.
# join_buffer_size = 128M
# sort_buffer_size = 2M
# read_rnd_buffer_size = 2M
 
sql_mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES

如下圖所示:

mysql 5.7.16 winx64安裝配置方法圖文教程

上圖可見,mysql沒有data目錄,接下來我們需要初始化data目錄
cmd下進入bin目錄

4、運行:mysqld --initialize

mysql 5.7.16 winx64安裝配置方法圖文教程

5、安裝mysql   mysqld install mysql --defaults-file="D:\JAVA\mysql\my.ini"

6、啟動mysql net start mysql

mysql 5.7.16 winx64安裝配置方法圖文教程

后記:
在初始化時如果加上 –initial-insecure,則會創建空密碼的 root@localhost 賬號,否則會創建帶密碼的 root@localhost 賬號
密碼保存在:data文件夾下的*.err文件中
:2016-11-25T04:05:29.713660Z 1 [Note] A temporary password is generated for root@localhost: /lSEqHkou0x%

以上就是本文的全部內容,希望對大家的學習有所幫助,也希望大家多多支持服務器之家。

原文鏈接:http://blog.csdn.net/x_iya/article/details/53332893

延伸 · 閱讀

精彩推薦
主站蜘蛛池模板: 成人啪啪18免费网站 | free台湾极品性hd | 久久久成人免费视频 | 99久久精约久久久久久清纯 | 涩涩99| 2019亚洲日韩新视频 | 日日狠狠久久 | 亚洲码无人客一区二区三区 | 99视频有精品视频高清 | 最新91在线视频 | 草莓福利社区在线 | 国产一级毛片a | 黄色网址在线播放 | 中文字幕综合在线观看 | 天天操天天干天天操 | 在线看免费观看av | 成人免费毛片在线观看 | 草久在线| av在线在线| 高潮激情aaaaa免费看 | 欧美一级www片免费观看 | 91麻豆蜜桃一区二区三区 | 万圣街在线观看免费完整版 | 做羞羞视频 | 国产一区二区三区四区波多野结衣 | 免费一及片 | 国产精品嘿咻嘿咻在线播放 | 欧产日产国产精品99 | 久草在线观看资源 | 一级黄色淫片 | 美女视频免费一区二区 | 亚洲第一成人久久网站 | 手机在线看片国产 | 超碰人人做人人爱 | 一级成人欧美一区在线观看 | 亚洲网站在线 | 免费观看黄色一级视频 | 成人电影毛片 | 国产精品啪 | 91一区二区三区久久久久国产乱 | 久久久新 |