mysql 8.0.19 winx64.zip安裝教程
本文記錄了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ù)庫的數(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ù)庫
(如果不用管理員身份運(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í)密碼
直接回車就行
接下來設(shè)置自己的密碼
set password=“你的密碼”
查看一下默認(rèn)安裝的數(shù)據(jù)庫
show databases;
精彩專題分享:
以上就是本文的全部?jī)?nèi)容,希望對(duì)大家的學(xué)習(xí)有所幫助,也希望大家多多支持腳本之家。
相關(guān)文章
MySL實(shí)現(xiàn)如等級(jí)成色等特殊順序的排序詳解
這篇文章主要為大家介紹了MySL實(shí)現(xiàn)如等級(jí)成色等特殊順序的排序詳解,有需要的朋友可以借鑒參考下,希望能夠有所幫助,祝大家多多進(jìn)步,早日升職加薪2023-05-05
Mysql join聯(lián)表及id自增實(shí)例解析
這篇文章主要介紹了Mysql join聯(lián)表及id自增實(shí)例解析,文中通過示例代碼介紹的非常詳細(xì),對(duì)大家的學(xué)習(xí)或者工作具有一定的參考學(xué)習(xí)價(jià)值,需要的朋友可以參考下2020-09-09
MySQL解決Navicat設(shè)置默認(rèn)字符串時(shí)的報(bào)錯(cuò)問題
本文主要介紹了MySQL解決Navicat設(shè)置默認(rèn)字符串時(shí)的報(bào)錯(cuò),文中通過示例代碼介紹的非常詳細(xì),對(duì)大家的學(xué)習(xí)或者工作具有一定的參考學(xué)習(xí)價(jià)值,需要的朋友們下面隨著小編來一起學(xué)習(xí)學(xué)習(xí)吧2022-06-06
MySql 緩存查詢?cè)砼c緩存監(jiān)控和索引監(jiān)控介紹
這篇文章主要介紹了MySql 緩存查詢?cè)砼c緩存監(jiān)控和索引監(jiān)控,需要的朋友可以參考下2021-07-07
MySQL如何快速創(chuàng)建800w條測(cè)試數(shù)據(jù)表
這篇文章主要介紹了MySQL如何快速創(chuàng)建800w條測(cè)試數(shù)據(jù)表,下面文章圍繞MySQL創(chuàng)建測(cè)試數(shù)據(jù)表的相關(guān)資料展開詳細(xì)內(nèi)容,具有一的的參考價(jià)值,需要的小伙伴可以參考一下2022-03-03

