MySQL綠色版安裝(mysql-5.7.12-win32)

來源:互聯網
上載者:User

標籤:

1. 從官網下載安裝包:mysql-5.7.12-win32.zip

2. 解壓到C盤(任意盤符都行)

  C:\mysql-5.7.12-win32

3. 修改設定檔:C:\mysql-5.7.12-win32\my-default.ini

# For advice on how to change settings please see# http://dev.mysql.com/doc/refman/5.7/en/server-configuration-defaults.html# *** DO NOT EDIT THIS FILE. It‘s a template which will be copied to the# *** default location during install, and will be replaced if you# *** upgrade to a newer version of MySQL.[mysqld]# Remove leading # and set to the amount of RAM for the most important data# cache in MySQL. Start at 70% of total RAM for dedicated server, else 10%. innodb_buffer_pool_size = 128M# Remove leading # to turn on a very important data integrity option: logging# changes to the binary log between backups.# log_bin# These are commonly set, remove the # and set as required. basedir = "C:\mysql-5.7.12-win32" datadir = "C:\mysql-5.7.12-win32\data2016" port = 3306# server_id = ...# Remove leading # to set options mainly useful for reporting servers.# The server defaults are faster for transactions and fast SELECTs.# Adjust sizes as needed, experiment to find the optimal values. join_buffer_size = 128M sort_buffer_size = 2M read_rnd_buffer_size = 2M sql_mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES 

 

4. 配置系統內容變數path=....(之前的加上)....;C:\mysql-5.7.12-win32\bin

 

5. 執行如下命令:

 

> mysqld  --initialize-insecure> mysql -install> net start mysql   (或者 net start MySQL)

 (如果要重新install,需要先remove:mysql --remove

 

6. 如果正常的話,會顯示如下資訊:

C:\mysql-5.7.12-win32\bin>net start MySQLMySQL 服務正在啟動 .MySQL 服務已經啟動成功。


如果啟動報錯,可以看一下mysql的報錯日誌:C:\mysql-5.7.12-win32\data2016\HEJT6VWINGVD59M.err

新安裝的MySQL的root使用者的密碼是空的,所以可以直接連接:mysql -u root -p

 

MySQL綠色版安裝(mysql-5.7.12-win32)

相關文章

聯繫我們

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