準備:
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
分享文章:windows10+mysql8.0.11zip安裝教程詳解-創新互聯
本文地址:http://vcdvsql.cn/article26/cdehjg.html
成都網站建設公司_創新互聯,為您提供品牌網站制作、自適應網站、網站營銷、搜索引擎優化、品牌網站設計、電子商務
聲明:本網站發布的內容(圖片、視頻和文字)以用戶投稿、用戶轉載內容為主,如果涉及侵權請盡快告知,我們將會在第一時間刪除。文章觀點不代表本網站立場,如需處理請聯系客服。電話:028-86922220;郵箱:631063699@qq.com。內容未經允許不得轉載,或轉載時需注明來源: 創新互聯