You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The error you're encountering is related to a SQL syntax issue when querying the MySQL database. The specific error message indicates a problem with the SQL syntax near [pos=0 lim=9 cap=9]). This suggests that there might be an issue with how the query is being constructed or executed in the MysqlTable.query method.
Here are a few steps you can take to address this issue:
Update MySQL Driver: The log mentions that the com.mysql.jdbc.Driver is deprecated. Ensure that you are using the correct driver class com.mysql.cj.jdbc.Driver for MySQL Connector/J 8.0.28. Update your configuration to use this driver if it hasn't been done already [1].
Check SQL Query Construction: Review the MysqlTable.query method to ensure that the SQL query is being constructed correctly. The error might be due to incorrect handling of query parameters or conditions. This method is responsible for converting a Query object into SQL statements, and any misconfiguration could lead to syntax errors [2].
Verify Database Schema: Ensure that the database schema matches the expected structure. Any discrepancies in table names, column names, or data types could lead to syntax errors during query execution.
Review Configuration Files: Double-check your rest-server.properties and any other configuration files to ensure that all settings are correct and consistent with your MySQL setup [3].
By addressing these areas, you should be able to resolve the SQL syntax error and get the HugeGraph server running correctly.
Bug Type (问题类型)
other exception / error (其他异常报错)
Before submit
Environment (环境信息)
处理器 Intel(R) Core(TM) i7-8700 CPU @ 3.20GHz 3.19 GHz
机带 RAM 16.0 GB (15.8 GB 可用)
系统类型 64 位操作系统, 基于 x64 的处理器
版本 Windows 10 企业版
版本号 22H2
-MySQL Ver 8.0.40 for Win64 on x86_64 (MySQL Community Server - GPL)
-MySQL Driver mysql-connector-java-8.0.28
Expected & Actual behavior (期望与实际表现)
the error is
init not cause problem,but server can't run
Vertex/Edge example (问题点 / 边数据举例)
No response
Schema [VertexLabel, EdgeLabel, IndexLabel] (元数据结构)
No response
The text was updated successfully, but these errors were encountered: