Dba.deploySandboxInstance: (RuntimeError)

用sandbox 搭建InnoDB Cluster環境時遇到如下問題:

mysql-js> dba.deploySandboxInstance(3310)
A new MySQL sandbox instance will be created on this host in 
/root/mysql-sandboxes/3310


Warning: Sandbox instances are only suitable for deploying and 
running on your local machine for testing purposes and are not 
accessible from external networks.


Please enter a MySQL root password for the new instance: 
Deploying new MySQL instance...

Dba.deploySandboxInstance:  (RuntimeError)


通過dba.help('deploySandboxInstance')看到RuntimeError的解釋,但還是不知道該怎麼處理

mysql-js>  dba.help('deploySandboxInstance')

EXCEPTIONS

  RuntimeError: f SSL support can be provided and ignoreSslError: false.

DESCRIPTION

- ignoreSslError: Ignore errors when adding SSL support for the new instance,  by default: true.


檢查mysqlshell的日誌:

tail -f  $/HOME/.mysqlsh/mysqlsh.log  

ImportError: can't decompress data; zlib not available

發現python2.7 環境中缺少zlib,ssl

安裝相關依賴:yum -y install zlib*,openssl

重新編譯python後,重試,正常。



https://dev.mysql.com/doc/refman/5.7/en/mysql-innodb-cluster-sandbox-deployment.html

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章