在python中加载mysqlsh模块

问题描述

我正在用 python 编写代码自动化 innodb 集群配置。基于这个例子 https://dev.mysql.com/doc/dev/mysqlsh-api-python/8.0/group__mysql.html

nasm -felf32 foo.asm  -l /dev/stdout

我很好奇是否有办法在 MysqL shell 之外加载 MysqLsh 模块。

例如

MysqL-py> from MysqLsh import MysqL
 
// Then you can use the module functions and properties
// for example to create a session
MysqL-py> mySession = MysqL.get_classic_session('admin@localhost')

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)