1 / 45

第 2 章 MySQL 安裝與啟動

第 2 章 MySQL 安裝與啟動. 本章宗旨. 說明 MySQL 資料庫系統之相關應用軟體及來源 介紹 MySQL 應用軟體之安裝過程 介紹 MyODBC 應用軟體之安裝過程 介紹 Administrator 應用軟體之安裝過程 簡介 MySQL 伺服器之啟動、停止和應用指令. 大 綱. 2-1 應用軟體下載 2-2 MySQL 安裝 2-3 MyODBC 安裝 2-4 Administrator 安裝 2-5 安裝內容檢視 2-6 伺服器啟用和停止. 2-1 應用軟體下載. 所需下載軟體

jude
Download Presentation

第 2 章 MySQL 安裝與啟動

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. 第2章 MySQL安裝與啟動 主從式資料庫 - MySQL Setup

  2. 本章宗旨 • 說明MySQL資料庫系統之相關應用軟體及來源 • 介紹MySQL應用軟體之安裝過程 • 介紹MyODBC應用軟體之安裝過程 • 介紹Administrator應用軟體之安裝過程 • 簡介MySQL伺服器之啟動、停止和應用指令 主從式資料庫 - MySQL Setup

  3. 大 綱 2-1 應用軟體下載 2-2 MySQL安裝 2-3 MyODBC安裝 2-4 Administrator安裝 2-5 安裝內容檢視 2-6 伺服器啟用和停止 主從式資料庫 - MySQL Setup

  4. 2-1 應用軟體下載 • 所需下載軟體 • MySQL Database Server & Standard Clients: MySQL 5.6.10版 – winx86 • Connector/ODBC: MyODBC 6.6.5版 - Windows 主從式資料庫 - MySQL Setup

  5. 2-1 應用軟體下載(續) • MySQL官方網站 :http://www.mysql.com/downloads/mysql/ 主從式資料庫 - MySQL Setup

  6. Installer 版本下載畫面 主從式資料庫 - MySQL Setup

  7. 直接安裝版本下載畫面 主從式資料庫 - MySQL Setup

  8. 2-2 MySQL安裝 2-2-1解壓縮 2-2-2安裝應用程式 2-2-3設定伺服器環境參數 主從式資料庫 - MySQL Setup

  9. 2-2-2 安裝MySQL 第一階段安裝 主從式資料庫 - MySQL Setup

  10. 步驟1:雙點Setup安裝程式,出現圖2-1之畫面時,按【Next】繼續步驟1:雙點Setup安裝程式,出現圖2-1之畫面時,按【Next】繼續 主從式資料庫 - MySQL Setup 圖2-1

  11. 步驟2:選取【Custom】,並按【Next】 主從式資料庫 - MySQL Setup 圖2-2

  12. 步驟3:點取【Change】按鈕 圖2-3 主從式資料庫 - MySQL Setup

  13. 步驟3-1:選取安裝路徑,然後按【OK】 主從式資料庫 - MySQL Setup 圖2-4

  14. 步驟4:按【Back】鈕,回至圖2-2畫面,重選安裝類型為【Complete】 圖2-5 主從式資料庫 - MySQL Setup

  15. 步驟4-1:重選安裝類型為【Complete】 主從式資料庫 - MySQL Setup 圖2-2

  16. 步驟5:提示安裝設定條件,並按【Install】 主從式資料庫 - MySQL Setup 圖2-5

  17. 步驟5-1: 圖示安裝進度 主從式資料庫 - MySQL Setup 圖2-6

  18. 步驟6: 圖示第一階段安裝完成畫面 主從式資料庫 - MySQL Setup 圖2-7

  19. 第一階段後續處理 • 直接按【Finish】結束安裝工作,或是 • 勾選【Configure the MySQL Server Now】,再按【Finish】鈕,繼續第二階段之安裝程序 • 第二階段之安裝,也可在桌面之【開始】、【程式集】、【MySQL】、【MySQL Server】執行安裝程序 主從式資料庫 - MySQL Setup

  20. 2-2-3 設定伺服器環境參數 第二階段安裝 主從式資料庫 - MySQL Setup

  21. 伺服器環境參數設定起始畫面按【Next】繼續 主從式資料庫 - MySQL Setup 圖2-8

  22. 步驟1:點選【Detailed Configuration】及【Next】 主從式資料庫 - MySQL Setup 圖2-9

  23. 步驟2:點選【Developer Machine】及【Next】 主從式資料庫 - MySQL Setup 圖2-10

  24. 步驟3:點選【Multifunctional Database】及【Next】 主從式資料庫 - MySQL Setup 圖2-11

  25. 步驟4:選擇【InnoDB】資料表存放路徑,接著按【Next】 主從式資料庫 - MySQL Setup 圖2-12

  26. 步驟5:選擇【InnoDB】資料表存放路徑,接著按【Next】 主從式資料庫 - MySQL Setup 圖2-13

  27. 步驟6:設定以TCP/IP網路與伺服器連線,並預設PORT為 ”3306” 主從式資料庫 - MySQL Setup 圖2-14

  28. 步驟7:設定字元集,請點選【Best Support For Multilingualism】,以及手動設定Default字元集為 ”big5” 主從式資料庫 - MySQL Setup 圖2-15

  29. 步驟8:設定開機時自動啟動伺服器,以及選用作業系統之服務名稱(Service),系統預設名稱叫MySQL 主從式資料庫 - MySQL Setup 圖2-16

  30. 步驟9:設定伺服器管理者密碼,帳號預設為 ”root” 主從式資料庫 - MySQL Setup 圖2-17

  31. 步驟10:點取【Execute】按鈕,執行規劃程序 主從式資料庫 - MySQL Setup 圖2-18

  32. 2-5 安裝內容檢視 2-5-1 目錄結構 2-5-2伺服器工作環境參數檔 2-5-3 MySQL伺服器類型 主從式資料庫 - MySQL Setup

  33. 2-5-1 目錄結構 主從式資料庫 - MySQL Setup

  34. 2-5-2伺服器工作環境參數檔 • 伺服器工作環境之相關參數,預設儲存在檔名為「my.ini」之檔案內,可使用記事本開啟該檔案,查看詳細檔案內容 • 一部主機若同時充當主控台和伺服器者,需將該檔拷貝一份至C:\Windows目錄下,提供主控端應用程式使用 主從式資料庫 - MySQL Setup

  35. 2-5-3 MySQL伺服器類型 主從式資料庫 - MySQL Setup

  36. 2-6 伺服器啟用和停止 • 從Windows切至DOS模式有兩種方式: • 點取桌面之「開始」、「執行」,然後在出現之對話框內數入【cmd】指令,按【確定】後即可進入DOS模式。 • 直接點取桌面或程式集內有「DOS」圖示之應用程式。 • 將路徑切換至MySQL應用程式目錄 主從式資料庫 - MySQL Setup

  37. 2-6 伺服器啟用和停止(續) 2-6-1 測試伺服器 • 啟動伺服器:【C:\mysql\bin\mysqld --console】 • 停止伺服器:【C:\mysql\bin\mysqladmin - u root -p密碼 shutdown】 • 移除服務:【C:\mysql\bin\mysqld --remove】 主從式資料庫 - MySQL Setup

  38. 伺服器啟動視窗畫面 主從式資料庫 - MySQL Setup

  39. 主從式對話畫面 主從式資料庫 - MySQL Setup

  40. 2-6-2 伺服器啟動成Windows Service • 停止伺服器:【C:\mysql\bin\mysqladmin -u root -p密碼 shutdown】 • 移除服務:【C:\mysql\bin\mysqld --remove】 • 啟動服務:【Net Start mysql】 • 重新啟動伺服器: • 不帶參數檔:【mysqld --install】 • 帶參數檔:【mysqld --install mysql --defaults-file=c:\mysql\my.ini】 主從式資料庫 - MySQL Setup

  41. 2-6-3 其他測試指令 • 【mysqlshow】:顯示沒有使用權限 • 【mysqlshow –u root mysql】:顯示已建資料庫明細 • 【mysqladmin –u root -p密碼 version status proc】:顯示連線資料 主從式資料庫 - MySQL Setup

  42. 2-6-4 試用主控端應用指令 • 開啟主控端視窗指令: • mysql –h Host – u User –pPassword • 顯示資料庫指令: • SHOW DATABASES; 主從式資料庫 - MySQL Setup

  43. 主控端操作視窗 主從式資料庫 - MySQL Setup

  44. 顯示資料庫明細 主從式資料庫 - MySQL Setup

More Related