暂无图片
GoldenDB版本如何查询?
我来答
分享
lscomeon
2023-08-03
GoldenDB版本如何查询?

GoldenDB版本如何查询?

各版本与MySQL版本如何对应?

我来答
添加附件
收藏
分享
问题补充
2条回答
默认
最新
吴涵文

登录到 GoldenDB,使用命令查询。

SELECT @@version;

1. GoldenDB 8.x 对应 MySQL 8.x:GoldenDB 8.x 是基于 MySQL 8.x 版本开发的,包含了 MySQL 8.x 的核心功能和特性,并在此基础上进行了扩展和优化。

2. GoldenDB 7.x 对应 MySQL 5.7:GoldenDB 7.x 是基于 MySQL 5.7 版本开发的,与 MySQL 5.7 具有相似的功能和语法。

暂无图片 评论
暂无图片 有用 0
暂无图片
Ray

您好,请问是否可以使用mysql-connector-python api 8.0.33版本去连接goldenDB 8.9.99版本,使用如下代码测试连接:import mysql.connector config = { 'user': 'your_username', 'password': 'your_password', 'host': 'your_host', 'database': 'your_database', 'charset': 'utf8mb4' } try: conn = mysql.connector.connect(**config) cursor = conn.cursor() cursor.execute("SELECT 1;") print("Connection successful") except mysql.connector.Error as err: print(f"Error: {err}") finally: if conn.is_connected(): cursor.close() conn.close()  之后报错:Error:1064(HY000):you have an error in your sql syntax;check the manual that corresponds to your DB server version for the right syntax to use near ‘’utf8mb4_general_ci'' at line 1

暂无图片 评论
暂无图片 有用 0
回答交流
提交
问题信息
请登录之后查看
邀请回答
暂无人订阅该标签,敬请期待~~
暂无图片墨值悬赏