准备: Mysql8.0 windows zip包下载地址:https://cdn.mysql.com//Downloads/Mysql-8.0/mysql-8.0.11-winx64.zip 环境:Win
准备:
Mysql8.0 windows zip包下载地址:https://cdn.mysql.com//Downloads/Mysql-8.0/mysql-8.0.11-winx64.zip
环境:Windows 10
一、安装
1. 解压zip包到安装目录
我的安装目录是D:\Program Files\mysql-8.0.11-winx64
2.配置文件
windows系统中配置文件默认是安装目录下的 my.ini 文件,部分配置需要在初始安装时配置,大部分也可以在安装完成后进行更改,不知道别人是什么情况,我的是该文件目录下不存在my.ini文件,所以我新建了该文件,如下
写入基本配置如下:
[mysqld]
default_authentication_plugin=mysql_native_passWord
# 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:\Program Files\mysql-8.0.11-winx64
datadir=D:\Program Files\mysql-8.0.11-winx64\data(这两行是主要修改的内容,会自动生成data文件夹,其他直接粘贴即可)
port = 3306
# server_id = .....
# 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
character-set-server = utf8mb4
perfORMance_schema_max_table_instances = 600
table_definition_cache = 400
table_open_cache = 256
[mysql]
default-character-set = utf8mb4
[client]
default-character-set = utf8mb4
--结束END--
本文标题: windows10+mysql8.0.11zip安装教程详解
本文链接: https://lsjlt.com/news/51313.html(转载时请注明来源链接)
有问题或投稿请发送至: 邮箱/279061341@qq.com QQ/279061341
2024-10-23
2024-10-22
2024-10-22
2024-10-22
2024-10-22
2024-10-22
2024-10-22
2024-10-22
2024-10-22
2024-10-22
回答
回答
回答
回答
回答
回答
回答
回答
回答
回答
0