安裝MySql筆記

來源:互聯網
上載者:User

1.首先,在E盤下解壓mysql-noinstall-5.2.3-falcon-alpha-win32.zip包,並改名為Mysql,放在E盤的根目錄下。

2.在記事本中建立一個"my.ini"檔案,輸入

[WinMySQLAdmin]
Server=E:/Mysql/bin/mysqld-nt.exe
[mysqld]
basedir=E:/Mysql
datadir=E:/Mysql/data

並放在C盤的根目錄下。

3.修改Path環境變數,";E:\Mysql\bin"添加進去。

4.CMD下到鍵入E:\Mysql\bin目錄下,鍵入"mysqld-nt -install",出現提示:"Service successfully installed."

5.繼續輸入"net start mysql",出現"MYSQL 服務正在啟動.";"MYSQL 服務已經啟動成功."

OK!

6.中間由於出現失誤,老是出現1067的錯誤,有時候還是要重啟一下機器的。


7.新裝好是沒有密碼的,直接輸入"mysql -uroot -p"進入,提示符變為"mysql>",修改密碼:"mysqladmin -uroot -password 123456 "。

聯繫我們

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