mysql-5.7.11-winx64.zip 安裝配置

來源:互聯網
上載者:User

標籤:

1、下載

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

2.解壓縮zip包;

D:\Program Files\mysql-5.7.11-winx64

 

 3.配置環境變數,

3.1 添加path路徑,

D:\Program Files\mysql-5.7.11-winx64\bin

 

 3.2.修改mysql-default.ini設定檔,

原

# These are commonly set, remove the # and set as required.# basedir = .....# datadir = .....# port = .....# server_id = .....

改為

# These are commonly set, remove the # and set as required. basedir = D:\Program Files\mysql-5.7.11-winx64 datadir = D:\Program Files\mysql-5.7.11-winx64\Data port = 3306# server_id = .....

 

4.以管理員身份進入命令提示字元 cmd

Microsoft Windows [Version 6.1.7601]Copyright (c) 2009 Microsoft Corporation.  All rights reserved.C:\Windows\system32>mysqld --initialize --user=mysql --console2016-05-08T02:58:49.494014Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).2016-05-08T02:58:49.530016Z 0 [Warning] ‘NO_ZERO_DATE‘, ‘NO_ZERO_IN_DATE‘ and ‘ERROR_FOR_DIVISION_BY_ZERO‘ sql modes should be used with strict mode. They willbe merged with strict mode in a future release.2016-05-08T02:58:49.530016Z 0 [Warning] ‘NO_AUTO_CREATE_USER‘ sql mode was not set.2016-05-08T02:58:52.348376Z 0 [Warning] InnoDB: New log files created, LSN=457902016-05-08T02:58:52.869005Z 0 [Warning] InnoDB: Creating foreign key constraintsystem tables.2016-05-08T02:58:53.432037Z 0 [Warning] No existing UUID has been found, so we assume that this is the first time that this server has been started. Generatinga new UUID: cc42ac67-14c8-11e6-90e5-08606e8d1296.2016-05-08T02:58:53.533043Z 0 [Warning] Gtid table is not ready to be used. Table ‘mysql.gtid_executed‘ cannot be opened.2016-05-08T02:58:53.791057Z 1 [Note] A temporary password is generated for [email protected]localhost: UiS<C(.i(0ygC:\Windows\system32>D:D:\>cd mysqlD:\mysql>D:\mysql>mysqld --install MySQLService successfully installed.D:\mysql>net start mysqlThe MySQL service is starting.The MySQL service was started successfully.D:\mysql>mysql -u root -pEnter password:UiS<C(.i(0ygset password for [email protected] = password(‘hxl520‘);

 

mysql-5.7.11-winx64.zip 安裝配置

聯繫我們

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