[僅限PaaS]{class="badge informative" title="僅適用於雲端專案(Adobe管理的PaaS基礎結構)和內部部署專案的Adobe Commerce 。"}
啟用您的Commerce Intelligence帳戶以進行內部部署和入門訂閱
若要針對內部部署訂閱啟用Commerce Intelligence,請先建立Commerce Intelligence帳戶、輸入您的設定資訊,然後將Commerce Intelligence連線至您的Commerce資料庫。
建立您的Commerce Intelligence帳戶
若要建立您的帳戶,請聯絡您的Adobe帳戶團隊或客戶技術顧問。
建立您的密碼
建立帳戶之後,請檢視電子郵件中是否有來自The Magento BI Team@rjmetrics.com的帳戶通知電子郵件。 使用電子郵件中提供的連結來存取您的Commerce Intelligence帳戶並建立密碼。 移至您的收件匣並驗證您的電子郵件地址。
如果您沒有收到電子郵件,請連絡支援。
設定您的商店偏好設定
在設定資料庫連線之前,請先完成存放區資訊表單。 需要此資訊才能完成 Connect your Database 安裝。
新增Commerce Intelligence位使用者
在您設定密碼並登入Commerce Intelligence之後,您可以將其他使用者新增到您的Commerce Intelligence帳戶。 新增使用者時,請新增具有適當許可權的管理員使用者以完成啟用程式。
在Commerce Intelligence管理員中建立專用的Commerce使用者
若要使用Commerce Intelligence,您必須將永久且專屬的使用者新增至Commerce專案。 此專屬使用者可做為與Commerce的永久連線,以啟用擷取新資料並將新資料傳輸至帳戶的Commerce Intelligence Data Warehouse。
設定專用的Commerce Intelligence使用者可確保不會停用或刪除該帳戶,進而停止Commerce Intelligence連線。
在您於Admin中建立Commerce Intelligence的專用使用者後,請以Commerce設定為 Master 將相同使用者新增到Contributor
專案的主要環境。
取得Commerce Intelligence SSH金鑰
-
在Connect your database設定的Commerce Intelligence頁面上,向下捲動並選取 Encryption settings。
-
對於 加密型別,請選取
SSH Tunnel
。 -
從下拉式清單,複製提供的公開金鑰。
將您的公開金鑰新增至Commerce Intelligence
-
從Commerce Admin,使用您剛建立之Commerce Intelligence使用者的登入資訊登入。
-
選取「帳戶設定」標籤。
-
向下捲動並展開 SSH Keys 下拉式清單。 然後,選取 Add a public key。
-
貼上您在上述Encryption Type步驟中複製的公開金鑰。
提供Commerce Intelligence個Essentials MySQL
認證
-
更新您的
.magento/services.yaml
。 -
更新您的
.magento.app.yaml
。
取得資料庫連線資訊
取得到Commerce資料庫的資料庫連線資訊到Commerce Intelligence
-
執行下列動作以取得您的資訊。
echo $MAGENTO_CLOUD_RELATIONSHIPS | base64 --decode | json_pp
-
檢閱資料庫資訊,這些資訊應該與下列範例類似。
使用加密連線將Commerce Intelligence連線到您的Commerce資料庫
SSH tunnel
通道來建立資料庫連線。 不過,如果此方法不是選項,您仍可使用Commerce Intelligence將direct connection
連結至您的資料庫。在Commerce Intelligence畫面中輸入您的Connect your Magento Database資訊。
輸入:
Integration Name: [為您的Commerce Intelligence執行個體選擇名稱]
Host: mbi.internal
Port: 3306
使用者名稱: mbi
Password:在上一節中顯示了[輸入密碼]
Database Name: main
Table Prefixes:如果沒有資料表首碼,[請留空]
設定您的 時區 設定
輸入:
Database Timezone: UTC
Desired Timezone: [選擇要顯示資料的時區]
取得您的加密設定資訊
專案UI會提供SSH存取字串。 此字串可用來收集 遠端位址 和 使用者名稱 所需的資訊。 在Project UI的「主要」分支上選取「存取網站」按鈕,以使用SSH存取字串。 然後尋找您的User Name和Remote Address,如下所示。
輸入您的Encryption設定
輸入:
Encryption Type: SSH Tunnel
Remote Address: ssh.us-3.magento.cloud
[來自上一個步驟]
Username: vfbfui4vmfez6-master-7rqtwti—mymagento
[來自上一個步驟]
Port: 22
儲存您的整合。
完成設定步驟後,選取 儲存整合 以套用變更。
您現在已成功將Commerce資料庫連線至Commerce Intelligence帳戶。
完成設定後,請登入您的Commerce Intelligence帳戶。