本文記錄了mysql 8.0.19 winx64.zip安裝教程,供大家參考
新建 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.
# 設(shè)置mysql數(shù)據(jù)庫(kù)的數(shù)據(jù)的存放目錄
basedir=E:\app\mysql-8.0.19-winx64
datadir=E:\app\mysql-8.0.19-winx64\data
#設(shè)置3306端口
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
# 服務(wù)端使用的字符集默認(rèn)為UTF8
character-set-server = utf8mb4
performance_schema_max_table_instances = 600
table_definition_cache = 400
table_open_cache = 256
# 創(chuàng)建新表時(shí)將使用的默認(rèn)存儲(chǔ)引擎
default-storage-engine=INNODB
#最大連接數(shù)
max_connections=200
[mysql]
default-character-set = utf8mb4
[client]
default-character-set = utf8mb4
初始化密碼查找:
如果data文件夾已經(jīng)存在,先刪除后,再執(zhí)行以下:
mysqld --initialize --console
可以看到控制臺(tái)輸出有以下:
A temporary password is generated for root@localhost: hjd/Qg=XN4D*
在安裝目錄下生成 data文件 不用自己創(chuàng)建。
執(zhí)行 mysqld -install 安裝mysql數(shù)據(jù)庫(kù)
(如果不用管理員身份運(yùn)行,將會(huì)因?yàn)闄?quán)限不夠而出現(xiàn)錯(cuò)誤:Install/Remove of the Service Denied!)
執(zhí)行時(shí)一定要在bin目錄底下(或者把bin層級(jí)的路徑添加到path環(huán)境變量中)
net start mysql 啟動(dòng)服務(wù)(需要管理員權(quán)限)
net stop mysql 關(guān)閉服務(wù)。
啟動(dòng)成功以后
輸入 mysql -u root -p
Enter password: --------------上述臨時(shí)密碼
直接回車(chē)就行
接下來(lái)設(shè)置自己的密碼
set password=“你的密碼”
查看一下默認(rèn)安裝的數(shù)據(jù)庫(kù)
精彩專(zhuān)題分享:
mysql不同版本安裝教程
mysql5.7各版本安裝教程
mysql5.6各版本安裝教程
mysql8.0各版本安裝教程
以上就是本文的全部?jī)?nèi)容,希望對(duì)大家的學(xué)習(xí)有所幫助,也希望大家多多支持腳本之家。
您可能感興趣的文章:- Windows10下mysql 8.0.19 安裝配置方法圖文教程
- Windows10下mysql 8.0.19 winx64安裝教程及修改初始密碼
- mysql 8.0.19 安裝配置方法圖文教程
- mysql 8.0.19 win10快速安裝教程
- MySQL8.0.19安裝教程
- MySQL 8.0.19安裝詳細(xì)教程(windows 64位)