python 连接Gbase8a 的驱动程序, 资源比较稀缺;
安装步骤:
tar -zxvf gbase-connector-python-3.0.1.tar.gz -C /usr/local/src/
cd /usr/local/src/gbase-connector-python-3.0.1
python3 setup.py install
from GBaseConnector import connect, GBaseError
config = {'host': '192.168.195.128',
'user': 'root',
'passwd': 'root',
'port': 5258,
'db': 'gbase'}
try:
conn = connect()
conn.connect(**config)
cur = conn.cursor()
cur.execute("SELECT TABLE_NAME, ENGINE,TABLE_ROWS FROM
1