MYSQL在Win下免安裝zip

來源:互聯網
上載者:User

標籤:blog   grant   span   download   strong   tar   自動   variable   mysql   

  mysql對於Win測試簡單zip安裝即可瞭解my.in設定檔的妙處(show variables),本地搭建mysql服務測試引擎!

01、下載

 https://dev.mysql.com/downloads/mysql

 

mysql-5.6.34-winx64.zip

 http://pan.baidu.com/s/1kVKBJgz 密碼: 1qcf

02、解壓:

mysql-5.6.34-winx64.zip

03、修改:

my-default.ini   --->my.ini

修改my.ini

basedir    = d:\mysql-5.6.34-winx64        #mysql的家目錄datadir    = d:\mysql-5.6.34-winx64\data   #資料存放目錄port       = 3306server_id  = 0

04、管理員cmd:

用管理員身份開啟c:\windows\system32\cmd.exe  #右鍵管理員身份運行

05、初始化資料庫:

d:                                            #切換到d盤

cd mysql-5.6.34-winx64\bin

mysqld -install                         #安裝mysql服務

net start|stop mysql                 #啟動關閉mysql服務

 

06、初始化root密碼

mysqladmin -u root password 123123  #初始化root密碼

mysql -uroot -p123123                         #登入

grant all on *.*  to ‘root‘@‘%‘ identified by ‘123123‘;  #設定任何主機都可以登入資料庫

 

07、設定mysql開機自動啟動:

開啟服務--mysql服務---啟動方式--自動

MYSQL在Win下免安裝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.