国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 數據庫 > MySQL > 正文

windows10+mysql8.0.11zip安裝教程詳解

2024-07-24 12:50:20
字體:
來源:轉載
供稿:網友

準備:

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-winx64datadir=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 = utf8mb4performance_schema_max_table_instances = 600table_definition_cache = 400table_open_cache = 256[mysql]default-character-set = utf8mb4[client]default-character-set = utf8mb4

注意,里面的 basedir 是我本地的安裝目錄,datadir 是我數據庫數據文件要存放的位置,各項配置需要根據自己的環境進行配置。

3.初始化數據庫

在MySQL安裝目錄的 bin 目錄下執行命令:

mysqld --initialize --console

執行完成后,會打印 root 用戶的初始默認密碼,比如:

2018-05-01T14:35:01.507037Z 0 [Warning] [MY-010915] [Server] 'NO_ZERO_DATE', 'NO_ZERO_IN_DATE' and 'ERROR_FOR_DIVISION_BY_ZERO' sql modes should be used with strict mode. They will be merged with strict mode in a future release.2018-05-01T14:35:01.507640Z 0 [System] [MY-013169] [Server] D:/Program/MySQL8/bin/mysqld.exe (mysqld 8.0.11) initializing of server in progress as process 110642018-05-01T14:35:01.508173Z 0 [ERROR] [MY-010340] [Server] Error message file 'D:/Program Files/mysql-8.0.11-winx64/share/english/errmsg.sys' had only 1090 error messages, but it should contain at least 4512 error messages. Check that the above file is the right version for this program!2018-05-01T14:35:05.464644Z 5 [Note] [MY-010454] [Server] A temporary password is generated for root@localhost: APWCY5ws&hjQ2018-05-01T14:35:07.017280Z 0 [System] [MY-013170] [Server] D:/Program/MySQL8/bin/mysqld.exe (mysqld 8.0.11) initializing of server has completed
發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 张北县| 伽师县| 嘉鱼县| 麻栗坡县| 遵义市| 永登县| 友谊县| 玉山县| 永州市| 驻马店市| 安吉县| 九寨沟县| 饶河县| 马山县| 周宁县| 承德县| 潢川县| 沐川县| 萝北县| 宁蒗| 五大连池市| 稷山县| 施秉县| 天等县| 武城县| 峨边| 庆元县| 颍上县| 渑池县| 疏勒县| 安图县| 沾化县| 浠水县| 宜都市| 朝阳县| 潜江市| 丰顺县| 手游| 乐清市| 荣成市| 尼木县|