MemSQL Schema Introspection
My company has recently started using MemSQL for database storage. They claim to be compatible with MySQL, so they advise to use MySQL drivers whenever communicating with their database. Given this, I have added it as a MySQL database in DataGrip. So far this has been working... I am able to execute queries without any issues. However, DataGrip is unable to introspect the schema. When I start the introspection, I receive the following error:
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'order by seq_in_index separator '\n') as column_names,
non_unique
from informa' at line 4
MemSQL is a newer, less popular database, so I understand why it is not (yet?) supported. However, I wondered if there is something I might be able to do (a configuration tweak or some such thing) to get this working. MySQL Workbench works with MemSQL without issue, so I don't believe there is a compatibility issue on the MemSQL side. Rather, it doesn't like the syntax of the introspection query generated by DataGrip.
Does anybody have experience or advice with this combination?
请先登录再写评论。
Hello Kevin,
Thank you for report. We have this issue logged: https://youtrack.jetbrains.com/issue/DBE-2421 . Could you please post the idea.log after you are trying to Synchronize the schema and the output from Test Connection button for the Data Source? Thanks.
As a workaround please enable Use legacy introspector option in Schemas tab of the Data Source.
Andrey,
Thanks for the reply. And a big thank you for the workaround. It did the job perfectly. I will attach the requested information to the support ticket in addition to supplying it here.
Here's the output of the Test Connection button:
It doesn't appear that I can attach the log file, however I started a clean one before testing, so it isn't terribly long. I am pasting it in below. With any luck, this won't come out as a colossal wall of text...