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)建新表時將使用的默認(rèn)存儲引擎 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
可以看到控制臺輸出有以下:
A temporary password is generated for root@localhost: hjd/Qg=XN4D*
在安裝目錄下生成 data文件 不用自己創(chuàng)建。
執(zhí)行 mysqld -install 安裝mysql數(shù)據(jù)庫
(如果不用管理員身份運行,將會因為權(quán)限不夠而出現(xiàn)錯誤:Install/Remove of the Service Denied!)
執(zhí)行時一定要在bin目錄底下(或者把bin層級的路徑添加到path環(huán)境變量中)
net start mysql 啟動服務(wù)(需要管理員權(quán)限)
net stop mysql 關(guān)閉服務(wù)。
啟動成功以后
輸入 mysql -u root -p
Enter password: --------------上述臨時密碼
直接回車就行
接下來設(shè)置自己的密碼
set password=“你的密碼”
查看一下默認(rèn)安裝的數(shù)據(jù)庫
show databases;
精彩專題分享:
以上就是本文的全部內(nèi)容,希望對大家的學(xué)習(xí)有所幫助,也希望大家多多支持腳本之家。
相關(guān)文章
CentOS7下二進(jìn)制安裝mysql 5.7.23
這篇文章主要為大家詳細(xì)介紹了CentOS7下二進(jìn)制安裝mysql 5.7.23,具有一定的參考價值,感興趣的小伙伴們可以參考一下2019-06-06mysql性能優(yōu)化腳本mysqltuner.pl使用介紹
無意中發(fā)現(xiàn)了,major哥們開發(fā)的一個性能分析腳本,很有意思,可以通過這個腳本學(xué)學(xué)他的思想2013-02-02VS2019連接MySQL數(shù)據(jù)庫的過程及常見問題總結(jié)
今天想使用VS2019可以配合MySQL一起使用,在配置過程中出現(xiàn)一些錯誤,下面通過本文給大家分享VS2019連接MySQL數(shù)據(jù)庫的過程及常見問題總結(jié),感興趣的朋友跟隨小編一起看看吧2021-11-11