標籤:mod 手動 環境 time amd foreign 意思 insecure strong
一、mysql https://downloads.mysql.com/archives/installer/
說在前面的話
我為什麼已經嘗試和使用過同類型產品的很多MySQL版本,還要書寫這篇部落格呢?基於mysql-installer-web-community-5.7.18.1.msi
是因為,最近在做資料分析相關的研究工作。
首先,跟大家解釋下mysql-installer-web-community的mysq和mysql-installer-communityl的版本的區別
我看官網的解釋是這樣的:
Choosing the right file:
If you have an online connection while running the MySQL Installer, choose the mysql-installer-web-community file.
If you do NOT have an online connection while running the MySQL Installer, choose the mysql-installer-community file.
意思就是如果你在運行MySQL安裝程式時可以上網(網路連接),選擇mysql-installer-web-community;
如果你在運行MySQL安裝程式時不可以上網(沒有網路連接),選擇mysql-installer-community。
用通俗的說法就是一個是線上安裝,一個是離線安裝。看下這兩個檔案的大小就知道了。
mysql-installer-web-community-5.7.18.1.msi的下載
http://ftp.ntu.edu.tw/MySQL/Downloads/MySQLInstaller/
mysql-installer-web-community-5.7.18.1.msi的安裝
下載安裝包, mysql-installer-web-community-5.7.18.1
第一步:雙擊
第二步:等待一會
第三步:雙擊運行,並點擊“I accept…”,如所示。
第四步:單擊“Next” ,進入安裝類型選擇介面,對於學習資料分析來說, 只需要其中 2、 3 個模組即可,不用全部安裝, 選擇“Custom”就可以。
第五步:選擇“Custom”後, 出現選擇安裝模組的介面。
由可知,確實內建了很多。我不一一展示。
因為,我是安裝用來,做資料分析的 ,所以只需要其中 2、 3 個模組即可,不用全部安裝,
說明: 選擇”Full”後,進入安裝環境檢查介面, 對於每個模組,所需要的環境要求都已經列出,單機“Excute”,將會逐項進行安裝環境的檢查並安裝相應的環境,標記為“Manual”的需要手動安裝。如果直接單機“Next”,則會跳過環境檢查流程,直接安裝符合環境要求的模組,不符合要求的則不安裝。
說明:由於 MySQL 安裝在 Windows 環境下,所以需要微軟的一些類庫的支援。對於一般開
發人員的電腦上都有這些類庫,但是對於非編程人員的電腦上可能沒有,需要安裝。
Microsoft Visual C++ 2015, .Net Framework 4.5
得要安裝好,
Microsoft Visual C++ 2015 和 .Net Framework 4.5
https://www.microsoft.com/zh-CN/download/details.aspx?id=52685
.Net Framework 4.5 的下載
我電腦上,已經有了,就不示範了。
好的,手動安裝所需後,然後,再點擊,重新安裝即可。
它會,自動一段時間,下載好。喝杯咖啡去吧!
單擊“Excute”後,各個模組開始下載,下載完成後會自動安裝,並出現下載進度提示,。 漫長的等待時期,尤其是 MySQL Server5.7.18 的下載。
我這裡,是花了半天的時間。也許,比如大家在安裝這一步時,會有時不得不關電腦,沒事,關閉之後,直接再重複上述步驟到這裡即可。
預設選擇第一個,直接單機“下一步” 。
不用管,直接單機“下一步”。
輸入 MySQL 超級管理員賬戶“root”密碼,並且還可以建立普通管理員。
我一般喜歡給root密碼為rootroot
這個log,我複製出來,給大家看看。
Beginning configuration step: Stopping Server [if necessary]Ended configuration step: Stopping Server [if necessary]Beginning configuration step: Writing configuration fileEnded configuration step: Writing configuration fileBeginning configuration step: Updating firewallAdding firewall rule for MySQL57 on port 3308.Successfully added firewall rule.Ended configuration step: Updating firewallBeginning configuration step: Adjusting Windows service [if necessary]Attempting to grant Network Service require filesystem permissions.Granted permissions.Adding new serviceNew service addedEnded configuration step: Adjusting Windows service [if necessary]Beginning configuration step: Initializing Database [if necessary]Deleting Data folder shippedAttempting to run MySQL Server with --Initialize-insecureRunning process: C:\Program Files\MySQL\MySQL Server 5.7\bin\mysqld.exe --defaults-file="C:\ProgramData\MySQL\MySQL Server 5.7\my.ini" --initialize-insecure=on --consoleWaiting for the server stops: C:\Program Files\MySQL\MySQL Server 5.7\bin\mysqld.exe --defaults-file="C:\ProgramData\MySQL\MySQL Server 5.7\my.ini" --initialize-insecure=on --console2017-06-09T08:09:15.505766Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).2017-06-09T08:09:15.535767Z 0 [Warning] ‘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.2017-06-09T08:09:23.327213Z 0 [Warning] InnoDB: New log files created, LSN=457902017-06-09T08:09:24.559284Z 0 [Warning] InnoDB: Creating foreign key constraint system tables.2017-06-09T08:09:25.174319Z 0 [Warning] No existing UUID has been found, so we assume that this is the first time that this server has been started. Generating a new UUID: f3a3b10f-4cea-11e7-babd-00ffb027ca9a.2017-06-09T08:09:25.273324Z 0 [Warning] Gtid table is not ready to be used. Table ‘mysql.gtid_executed‘ cannot be opened.2017-06-09T08:09:25.277325Z 1 [Warning] [email protected] is created with an empty password ! Please consider switching off the --initialize-insecure option.Finished initialize databaseEnded configuration step: Initializing Database [if necessary]Beginning configuration step: Starting ServerStarting MySQL as a serviceEnded configuration step: Starting ServerBeginning configuration step: Applying security settingsAttempting to update security settings.Updated security settings.Ended configuration step: Applying security settingsBeginning configuration step: Creating user accountsAttempting to Add New MySQL UsersAdded New Users.Ended configuration step: Creating user accountsBeginning configuration step: Updating Start Menu LinkAttempting to verify command-line client shortcut.Verified command-line client shortcut.Verified command-line client shortcut.Ended configuration step: Updating Start Menu LinkBeginning configuration step: Updating Firewall for MySQL Document Data Feature SetEnded configuration step: Updating Firewall for MySQL Document Data Feature Set
完成安裝,單機“下一步”。
我這裡,若要對windows的MySQL,則是[email protected],然後是以3308連接埠。
其中我圖片中的[email protected],以3306,是我另一個同類型的MySQL軟體。 以及192.168.80.110:3306是我大資料平台下的Linux裡的MySQL。
以後,我們啟動,則點擊如下即可
常見問題
問題 1: 無法啟動次程式,因為電腦丟失 api-ms-win-crt-runtime
http://blog.csdn.net/huqiao1206/article/details/50768481
問題 2: 單獨下載、安裝 workbench
https://dev.mysql.com/downloads/workbench/
擴充學習
MySQL Workbench類型之MySQL用戶端工具的下載、安裝和使用Navicat Premium之MySQL用戶端的下載、安裝和使用(博主推薦)SQLyog之MySQL用戶端的下載、安裝和使用(旗艦版)(推薦)SQLyog之MySQL用戶端的下載、安裝和使用(企業版)(破解)Navicat for MySQL之MySQL用戶端的下載、安裝和使用SQLyog之MySQL用戶端的下載、安裝和使用(普通版)MySQL Server類型之MySQL用戶端工具的下載、安裝和使用(博主推薦)
mysql 5.7安裝教程