windows下mysql安裝

來源:互聯網
上載者:User

標籤:mysql

1.下載首先我們要下載一個mysql,找到oracel的官方下載頁面點擊開啟連結,然後我們發現有幾種: MySQL Enterprise Edition, MySQL Cluster CGE,MySQL Community Edition (GPL),前兩種一個是企業版,一個叢集式,最後一個是社區版本,前兩種都是付費的,我們當然是選擇社區版本串連進去,然後發現,仍然有很多選擇,當然都是免費的,我們選擇“MySQL Community Server(GPL)”;然後進去我們選擇microsoft windows作業系統,然後有3個版本供我們選擇,mySQL Installer MSI,mysql-5.6.22-win32.zip,mysql-5.6.22-win64.zip,我這邊選擇的是符合我這台老爺筆記本的win32.zip的版本,然後點擊下載,這個沒有什麼好說的。2.解壓縮並配置3安裝啟動開啟命令列,cd到解壓縮的bin目錄下,然後運行mysqld -install,然後提示說"service successfully installed",說明安裝成功。然後是net start mysql,提示“MySQL 服務正在啟動 MySQL服務已經啟動成功”。4.命令列基本操作cd到bin目錄,然後輸入mysql,便可以進入到命令列進行操作了。a.進入>mysql -u root -p斷行符號(提示)Enter password:斷行符號(標示密碼為空白)mysql>(等待輸入,說明已經進入)b.查看配置連接埠:mysql>show variables like ‘port‘ ;datadir(資料存放目錄):mysql>show variables like ‘datadir‘:c.資料庫顯示mysql>show databases;建立mysql>create database db1;(提示)query ok,1 row affected(0.06sec)

windows下mysql安裝

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.