The db=cx_Oracle. Connect (' user/password @ IP: port/database ')
Db=pymysql. Connect (host="", the user=" ", "=", "database=", "charset=" utf8 ")
Please give a python database connection oceanbase database method, thank you very much
CodePudding user response:
Website informationBecause OceanBase fully compatible with MySQL agreement, so you can use standard MySQL client connection OceanBase MySQL tenants, it is recommended to use 5.6 or 5.7 versions of the MySQL client, when using the MySQL client does not support connected to OceanBase Oracle tenants, if you need to connect to the Oracle tenants please use OceanBase client,
Try the mysql connections, this should be a technical support, ask ali cloud technology bai,