搜尋
首頁資料庫mysql教程mysql用zip安裝方法是什麼

mysql用zip安裝方法:先下載zip檔並解壓縮到本機;然後修改設定文件,複製相關內容;接著輸入cmd,以管理員身分執行控制台,執行mysqld install指令;最後設定初始密碼,並執行【mysql -u root -p】語句即可。

mysql用zip安裝方法是什麼

相關免費學習:mysql資料庫(視頻)

mysql用zip安裝方法:

    一直以來都習慣了使用MySQL安裝檔(.exe),今天下載了一個. zip版的MySQL,安裝過程中遇到了一些問題,如下:

     1、在MySQL官網上(http://dev.mysql.com/downloads/mysql/)下載免安裝版的zip文件(本文以mysql-5.7.14-winx64.zip為例)

     2、將zip檔案解壓縮到本機,本文解壓縮到下列目錄:D:\softwares\mysql-5.7.14-winx64

     3、新建一個設定檔(my.ini)用於設定字元集、連接埠等訊息,用以覆蓋原始的設定檔(my-default.ini),當然也可以修改這個預設的設定檔。新建資料夾data存放MySQL資料。如下:

         

 mysql用zip安裝方法是什麼

          將下列內容複製到新建的設定檔中,其中新的設定檔與datadir 資料夾路徑:#mysql 資料夾路徑:

          [mysql]
         # 設定mysql客戶端預設字元集
         default- 306埠
         port = 3306 
         # 設定mysql的安裝目錄

       # 設定mysql的安裝目錄

         basedir=D:\\softwares\\mysql-5.7.14-winx64## \softwares\\mysql-5.7.14-winx64\\data
##         # 允許最大連接數
         max_connections=200## acter-set -server=utf8

         # 建立新表時將使用的預設儲存引擎

         default-storage-engine=INNODB


   執行控制台進入MySQL路徑(D:\softwares\mysql-5.7.14-winx64\bin)下,執行mysqld install指令。注意:這裡需要以管理者身分運行,否則提示如下:

       

      5、安裝成功後,如下:

mysql用zip安裝方法是什麼       

 

        啟動mysql服務,以為萬事ok了,結果如下:mysql用zip安裝方法是什麼

        

 

mysql用zip安裝方法是什麼

mysql用zip安裝方法是什麼

##########################################################################################################################################################################1 6.上網搜尋3534這個錯誤訊息,有人說是從5.7.6開始需要執行mysqld --initialize方法(http://www.mamicode.com/info-detail-1150164.html)。解決方法如下:######           1) 執行mysqld -remove指令將先前的錯誤安裝刪除,否則會提示已安裝#######           2)執行myd --initialize 指令後執行,再執行執行net start mysql啟動MySQL,一切ok######               ############        7、執行」mysqladmin -u pass pass#        7、執行」mysqladmin -u password 密碼後執行初始密碼-p回車接著輸入密碼,即可登入mysql####

             mysql用zip安裝方法是什麼

mysql用zip安裝方法是什麼

             

##           

##  母親 # datadir不是以」\\「表示路徑,執行mysqld --initialize指令時會回報錯誤:

         

 mysql用zip安裝方法是什麼

        9、可設定環境變數,啟動cmd輸入mysql -u root -p密碼即可登入mysql,不用切換到mysql安裝目錄的bin目錄下,

           本文可以將D:\softwares\mysql-5.7.14-winx64\bin設定為在環境變數path中,啟動cmd後可直接輸入連接mysql的指令,如下:

##           

以上是mysql用zip安裝方法是什麼的詳細內容。更多資訊請關注PHP中文網其他相關文章!

陳述
本文內容由網友自願投稿,版權歸原作者所有。本站不承擔相應的法律責任。如發現涉嫌抄襲或侵權的內容,請聯絡admin@php.cn
如何在MySQL中刪除或修改現有視圖?如何在MySQL中刪除或修改現有視圖?May 16, 2025 am 12:11 AM

todropaviewInmySQL,使用“ dropviewifexistsview_name;” andTomodifyAview,使用“ createOrreplaceViewViewViewview_nameAsSelect ...”。 whendroppingaview,asew dectivectenciesanduse和showcreateateviewViewview_name;“ tounderStanditSsstructure.whenModifying

MySQL視圖:我可以使用哪些設計模式?MySQL視圖:我可以使用哪些設計模式?May 16, 2025 am 12:10 AM

mySqlViewScaneFectectialized unizedesignpatternslikeadapter,Decorator,Factory,andObserver.1)adapterPatternadaptSdataForomDifferentTablesIntoAunifiendView.2)decoratorPatternenhancateDataWithCalcalcualdCalcalculenfields.3)fieldfields.3)

在MySQL中使用視圖的優點是什麼?在MySQL中使用視圖的優點是什麼?May 16, 2025 am 12:09 AM

查看InMysqlareBeneForsImplifyingComplexqueries,增強安全性,確保dataConsistency,andOptimizingPerformance.1)他們simimplifycomplexqueriesbleiesbyEncapsbyEnculatingThemintoreusableviews.2)viewsEnenenhancesecuritybyControllityByControllingDataAcces.3)

如何在MySQL中創建一個簡單的視圖?如何在MySQL中創建一個簡單的視圖?May 16, 2025 am 12:08 AM

toCreateAsimpleViewInmySQL,USEthecReateaTeviewStatement.1)defitEtheetEtheTeViewWithCreatEaTeviewView_nameas.2)指定usethectstatementTorivedesireddata.3)usethectStatementTorivedesireddata.3)usetheviewlikeatlikeatlikeatlikeatlikeatlikeatable.views.viewssimplplifefifydataaccessandenenanceberity but consisterfort,butconserfort,consoncontorfinft

MySQL創建用戶語句:示例和常見錯誤MySQL創建用戶語句:示例和常見錯誤May 16, 2025 am 12:04 AM

1)foralocaluser:createUser'localuser'@'@'localhost'Indidendify'securepassword'; 2)foraremoteuser:creationuser's creationuser'Remoteer'Remoteer'Remoteer'Remoteer'Remoteer'Remoteer'Remoteer'Remoteer'Rocaluser'@'localhost'Indidendify'seceledify'Securepassword'; 2)

在MySQL中使用視圖的局限性是什麼?在MySQL中使用視圖的局限性是什麼?May 14, 2025 am 12:10 AM

mysqlviewshavelimitations:1)他們不使用Supportallsqloperations,限制DatamanipulationThroughViewSwithJoinsOrsubqueries.2)他們canimpactperformance,尤其是withcomplexcomplexclexeriesorlargedatasets.3)

確保您的MySQL數據庫:添加用戶並授予特權確保您的MySQL數據庫:添加用戶並授予特權May 14, 2025 am 12:09 AM

porthusermanagementinmysqliscialforenhancingsEcurityAndsingsmenting效率databaseoperation.1)usecReateusertoAddusers,指定connectionsourcewith@'localhost'or@'%'。

哪些因素會影響我可以在MySQL中使用的觸發器數量?哪些因素會影響我可以在MySQL中使用的觸發器數量?May 14, 2025 am 12:08 AM

mysqldoes notimposeahardlimitontriggers,butacticalfactorsdeterminetheireffactective:1)serverConfiguration impactactStriggerGermanagement; 2)複雜的TriggerSincreaseSySystemsystem load; 3)largertablesslowtriggerperfermance; 4)highConconcConcrencerCancancancancanceTigrignecentign; 5); 5)

See all articles

熱AI工具

Undresser.AI Undress

Undresser.AI Undress

人工智慧驅動的應用程序,用於創建逼真的裸體照片

AI Clothes Remover

AI Clothes Remover

用於從照片中去除衣服的線上人工智慧工具。

Undress AI Tool

Undress AI Tool

免費脫衣圖片

Clothoff.io

Clothoff.io

AI脫衣器

Video Face Swap

Video Face Swap

使用我們完全免費的人工智慧換臉工具,輕鬆在任何影片中換臉!

熱門文章

北端:融合系統,解釋
1 個月前By尊渡假赌尊渡假赌尊渡假赌
Mandragora:巫婆樹的耳語 - 如何解鎖抓鉤
4 週前By尊渡假赌尊渡假赌尊渡假赌
<🎜>掩蓋:探險33-如何獲得完美的色度催化劑
2 週前By尊渡假赌尊渡假赌尊渡假赌

熱工具

EditPlus 中文破解版

EditPlus 中文破解版

體積小,語法高亮,不支援程式碼提示功能

SublimeText3 Mac版

SublimeText3 Mac版

神級程式碼編輯軟體(SublimeText3)

SublimeText3 英文版

SublimeText3 英文版

推薦:為Win版本,支援程式碼提示!

禪工作室 13.0.1

禪工作室 13.0.1

強大的PHP整合開發環境

SublimeText3漢化版

SublimeText3漢化版

中文版,非常好用