串連到MySQL執行個體管理器並建立使用者賬戶

來源:互聯網
上載者:User

使用MySQL用戶端-伺服器協議來處理同MySQL執行個體管理器之間的通訊。你不能使用標準mysql用戶端程式和MySQL C API來串連IM。IM支援用戶端工具和mysql-4.1或以後的版本所分發的庫所用的MySQL用戶端-伺服器協議版本。

IM將使用者資訊儲存到密碼檔案中。密碼檔案的預設位置為/etc/mysqlmanager.passwd。

密碼應類似於:

petr:*35110DC9B4D8140F5DE667E28C72DD2597B5C848

要想產生密碼用--passwd選項調用IM。則輸出可以重新導向到/etc/mysqlmanager.passwd檔案以添加新使用者。下面為樣本命令。

./mysqlmanager --passwd >> /etc/mysqlmanager.passwd
Creating record for new user.
Enter user name: mike
Enter password: <password>
Re-type password: <password>

下面的行將加到/etc/mysqlmanager.passwd:

mike:*00A51F3F48415C7D4E8908980D443C29C69B60C9

如果/etc/mysqlmanager.passwd檔案中沒有該條,則不能串連IM。

聯繫我們

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