workbench.asciidoc 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. [role="xpack"]
  2. [testenv="platinum"]
  3. [[sql-client-apps-workbench]]
  4. === SQL Workbench/J
  5. [quote, https://www.sql-workbench.eu/]
  6. ____
  7. https://www.sql-workbench.eu/[SQL Workbench/J] is a free, DBMS-independent, cross-platform SQL query tool.
  8. ____
  9. ==== Prerequisites
  10. * {es-sql} <<sql-jdbc, JDBC driver>>
  11. ==== Add {es} JDBC driver
  12. Add the {es} JDBC driver to SQL Workbench/J through *Manage Drivers* either from the main windows in the *File* menu or from the *Connect* window:
  13. image:images/sql/client-apps/workbench-1-manage-drivers.png[]
  14. Add a new entry to the list through the blank page button in the upper left corner. Add the JDBC jar, provide a name and click on the magnifier button to have the driver *Classname* picked-up automatically:
  15. image:images/sql/client-apps/workbench-2-add-driver.png[]
  16. ==== Create a new connection profile
  17. With the driver configured, create a new connection profile through *File* > *Connect Window* (or Alt+C shortcut):
  18. image:images/sql/client-apps/workbench-3-connection.png[]
  19. Select the previously configured driver and set the URL of your cluster using the JDBC syntax.
  20. Verify the connection through the *Test* button - a confirmation window should appear that everything is properly configured.
  21. The setup is complete.
  22. ==== Execute SQL queries
  23. SQL Workbench/J is ready to talk to {es} through SQL: click on the profile created to execute statements or explore the data:
  24. image:images/sql/client-apps/workbench-4-data.png[]