在Azure上建立MYSQL服務

來源:互聯網
上載者:User

標籤:azure

Azure和所有的雲端服務一樣,也提供了MYSQL資料庫,在Azure中叫mysql database on azure。下面我們來一起在Azure上建立一個Mysql資料庫。

在建立--> 資料服務,Mysql database on azure當中選擇,快速建立,並填寫資料庫的響應資訊。

650) this.width=650;" src="http://upload-images.jianshu.io/upload_images/3899493-bb74a73a0bdad557.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240" class="imagebubble-image" style="height:auto;vertical-align:middle;border:0px;" alt="1240" />

1.png

注意:名稱只能是全小寫。

建立成功後,可以到儀錶盤當中看到資料庫的響應資訊。

650) this.width=650;" src="http://upload-images.jianshu.io/upload_images/3899493-977a254d126c20b6.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240" class="imagebubble-image" style="height:auto;vertical-align:middle;border:0px;" alt="1240" />

2.png

如果需要,可以在帳戶 Tab當中添加所需要的帳戶,帳戶格式為databasename%username, 並且可以進行許可權分配。

在資料庫配置當中,請加上自己的IP地址,保證不會被Azure過濾。有的同學因為沒有加入到白名單當中會發生無法串連的問題。

650) this.width=650;" src="http://upload-images.jianshu.io/upload_images/3899493-c914035e1511bb52.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240" class="imagebubble-image" style="height:auto;vertical-align:middle;border:0px;" alt="1240" />

6.png

稍後,我們使用mysqlworkbench進行串連。

650) this.width=650;" src="http://upload-images.jianshu.io/upload_images/3899493-c0343265d8e94421.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240" class="imagebubble-image" style="height:auto;vertical-align:middle;border:0px;" alt="1240" />

3.png

注意:這樣直接連接是串連不上的。Azure的MYSQL需要使用SSL串連。

先到 Azure協助中心 下載認證。
在Mysqlworkbench 上進行SSL設定。並且在“SSL Cipher”一欄填寫AES256-SHA

650) this.width=650;" src="http://upload-images.jianshu.io/upload_images/3899493-5fa592e3b5f99b36.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240" class="imagebubble-image" style="height:auto;vertical-align:middle;border:0px;" alt="1240" />

4.png

之後進行測試,已經可以串連。

650) this.width=650;" src="http://upload-images.jianshu.io/upload_images/3899493-8ac10adb63f7a8dc.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240" class="imagebubble-image" style="height:auto;vertical-align:middle;border:0px;" alt="1240" />

5.png


在Azure上建立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.