mysql 5.7 zip 檔案在 windows下的安裝

來源:互聯網
上載者:User

標籤:

1.下載mysql最新版本。

http://cdn.mysql.com//Downloads/MySQL-5.7/mysql-5.7.15-winx64.zip

2.解壓到檔案夾。

D:\software\mysql\mysql5.7a

 

將my-default.ini 複製為 my.ini

 

3.編輯my.ini

[mysqld]

# These are commonly set, remove the # and set as required.
basedir ="D:/software/mysql/mysql57a"
datadir ="D:/software/mysql/mysql57a/data"
port=3308

修改安裝目錄和資料目錄。

4.安裝mysql服務。

使用管理員命令模式。

去到 bin目錄。

執行命令 mysqld -install mysql57a

 

5.初始化

mysqld –initialize

在data組建目錄如下:

 

6.啟動mysql 服務。

net –start mysql57a

 

7.免密碼登入配置。

第一次登入一般沒有密碼,如果不能登入按照下面的步驟操作。

mysql –uroot –p –P3308

 

在my.ini 增加配置

skip-grant-tables

重啟服務,在重試登入。

mysql –uroot –p –P3308

這一次不用在輸入密碼即可登入了。

執行 use mysql

update mysql.user set authentication_string=password(‘root‘) where user=‘root‘ ;

再刪除:

skip-grant-tables 配置。

重啟mysql 服務。

使用命令

mysql –uroot –proot –P3308 然後就可以了。

mysql 5.7 zip 檔案在 windows下的安裝

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.