mysql 5.7.16 winx64安装配置方法图文教程
作者:N3verL4nd 时间:2024-01-26 22:30:25
针对之前安装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,最简单配置如下
# 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没有data目录,接下来我们需要初始化data目录
cmd下进入bin目录
4、运行:mysqld --initialize
5、安装mysql mysqld install mysql --defaults-file="D:\JAVA\mysql\my.ini"
6、启动mysql net start mysql
后记:
在初始化时如果加上 –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%
精彩专题分享:mysql不同版本安装教程 mysql5.7各版本安装教程 mysql5.6各版本安装教程
来源:http://blog.csdn.net/x_iya/article/details/53332893
标签:mysql5.7.16,mysql5.7,winx64
0
投稿
猜你喜欢
MySL实现如等级成色等特殊顺序的排序详解
2024-01-17 15:11:07
python自动发送邮件脚本
2023-01-24 07:56:28
浅谈Python的正则表达式
2022-05-11 00:54:16
Python PaddleNLP开源实现快递单信息抽取
2023-01-21 04:35:11
Android中Okhttp3实现上传多张图片同时传递参数
2024-05-10 14:06:20
python实现录屏功能(亲测好用)
2022-01-12 19:54:34
python进程池实现的多进程文件夹copy器完整示例
2021-04-27 13:05:26
Python3网络爬虫之使用User Agent和代理IP隐藏身份
2022-03-05 13:13:07
SQL联合查询inner join、outer join和cross join的区别详解
2024-01-14 21:33:41
Python数据分析之获取双色球历史信息的方法示例
2022-10-05 21:16:34
Python实现扫描局域网活动ip(扫描在线电脑)
2022-10-02 02:38:52
javascript中的replace函数(带注释demo)
2024-04-18 09:47:52
对python读取CT医学图像的实例详解
2023-12-29 12:36:37
Python实现手绘图效果实例分享
2021-03-19 11:28:00
解决django xadmin主题不显示和只显示bootstrap2的问题
2022-11-24 14:41:56
Vue.js监听select2的值改变进行查询方式
2024-04-30 10:42:13
Python3读取Excel数据存入MySQL的方法
2024-01-16 00:41:29
document.all与WEB标准
2008-03-16 14:28:00
一些实用性较高的js方法
2024-04-29 13:37:40
Python元组常见操作示例
2023-06-28 20:48:26