首頁  >  文章  >  資料庫  >  MySql5.6.36在64位元系統下的綠色版安裝圖文教程

MySql5.6.36在64位元系統下的綠色版安裝圖文教程

黄舟
黄舟原創
2017-05-28 09:37:231180瀏覽

這篇文章主要介紹了MySql 5.6.36 64位元綠色版本安裝圖文教程,需要的朋友可以參考下

網上MySQL安裝的文章有很多哈,但是今天在自己的筆記本上安裝遇到了問題,僅此做下記錄。下載MySQL的

zip

壓縮包,2、下載後解壓縮到你指的資料夾。

##3、設定環境

變數

,和設定Java的環境變數一樣。 -default.ini複製一份重新命名為my.ini

更改裡面的配置,注意裡面的檔案路徑一定要加英文的雙引號。 dos視窗切換到MySQL的bin 目錄下執行指令

<span style="font-size:14px;"># For advice on how to change settings please see 
# http://dev.mysql.com/doc/refman/5.6/en/server-configuration-defaults.html 
# *** DO NOT EDIT THIS FILE. It&#39;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 ="D:\Program Files\mysql-5.6.36-winx64" 
datadir ="D:\Program Files\mysql-5.6.36-winx64\data" 
# port = ..... 
# 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 
#服务端的编码方式 
character-set-server=utf8 
[client] 
#客户端编码方式,最好和服务端保存一致 
loose-default-character-set = utf8 
[WinMySQLadmin] 
Server = "D:\Program Files\mysql-5.6.36-winx64\bin\mysqld.exe" 
</span>

我的出了問題,網路上找了下說是缺少Microsoft Visual C++ 2010 運作函式庫。 好吧,去官網下這個安裝好重啟了服務安裝成功。

到此我們MySQL伺服器已經安裝完畢了。 root 密碼為空使用指令mysql –u root –p按回車提示輸入密碼直接回車就可以登入啦。

我們改下預設密碼吧,還是在bin指令目錄下,

使用mysql

admin.exe指令改密碼

mysqladmin –u root –p passw

ord

123456//123456是新密碼,按回車提示輸入密碼,此時為原來的密碼,原密碼為空直接回車就修改成功了。

使用新密碼登入

黑視窗下操作著實不方便,實際工作中mysql的視覺化工具用的最多是navicat for mysql這個工具。

以上是MySql5.6.36在64位元系統下的綠色版安裝圖文教程的詳細內容。更多資訊請關注PHP中文網其他相關文章!

陳述:
本文內容由網友自願投稿,版權歸原作者所有。本站不承擔相應的法律責任。如發現涉嫌抄襲或侵權的內容,請聯絡admin@php.cn