windows安裝mysql

來源:互聯網
上載者:User

標籤:ora   generated   cal   temp   預設   mys   server   mysql安裝   下載   

下載解壓安裝包

1、初始化資料庫,在MySQL安裝目錄的 bin 目錄下執行命令:執行命令mysqld --initialize --console
產生了臨時密碼:9o8;1#0#IkeK

2018-06-08T02:48:43.804512Z 0 [System] [MY-013169] [Server] D:\Software\mysql\bi
n\mysqld.exe (mysqld 8.0.11) initializing of server in progress as process 25324

2018-06-08T02:49:00.346512Z 5 [Note] [MY-010454] [Server] A temporary password i
s generated for [email protected]: 9o8;1#0#IkeK
2018-06-08T02:49:09.428512Z 0 [System] [MY-013170] [Server] D:\Software\mysql\bi
n\mysqld.exe (mysqld 8.0.11) initializing of server has completed

2、在MySQL安裝目錄的 bin 目錄下執行命令,以管理員方式運行cmd,mysqld --install [服務名]
Service successfully installed.

後面的服務名可以不寫,預設的名字為 mysql。當然,如果你的電腦上需要安裝多個MySQL服務,就可以用不同的名字區分了,比如 mysqlxxx和 mysqlyyy。


3、啟動停止mysql服務
net start mysql
net stop mysql

4、登入
mysql -u root -p


5,修改密碼


ALTER USER ‘root‘@‘localhost‘ IDENTIFIED WITH mysql_native_password BY ‘root‘;


6、常用命令

windows安裝mysql

聯繫我們

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