DBeaver

Updated at:
Copy as MD

This page describes the compatibility test results for DBeaver 6.1.2 Community Edition with AnalyticDB for MySQL. Ten scenarios are tested, covering connectivity, database operations, and view management.

Prerequisites

Before you begin, make sure you have:

  • AnalyticDB for MySQL V3.1.0 or later

  • DBeaver 6.1.2 Community Edition

  • Java 1.8.0_161 (Java(TM) SE Runtime Environment, build 1.8.0_161-b12; Java HotSpot(TM) 64-Bit Server VM, build 25.161-b12, mixed mode)

  • MySQL Ver5.6.46 for osx10.13 on x86_64 (Homebrew)

Compatibility test results

All ten scenarios pass compatibility testing. The following sections show the test results.

Test connectivity

Connect DBeaver to AnalyticDB for MySQL using the MySQL driver.

连通性1连通性2

List databases

Browse the available databases after connecting.

List databases

Create a table

Create a new table in AnalyticDB for MySQL using DBeaver.


DROP TABLE IF EXISTS `school`;
CREATE TABLE `school` (
  `id` bigint NOT NULL,
  `name` varchar,
  `create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `update_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  key status_idx(`name`),
  primary key (id)
) DISTRIBUTE BY HASH(`id`);

List all tables

View all tables in a database.

List all tables

Query the schema of a table

Inspect the column definitions and structure of a table.


show create table school;

-- Result:
-- Table: school
-- Create Table: Create Table `school` (¶ `id` bigint NOT NULL,¶ `name` varchar,¶ `create_time` timestamp NOT N...

查看表结构2

Write data to a table

Insert data into a table.

Write data to a table

Query the data of a table

Run a SELECT query and view results in DBeaver.

查表1查表2

Create a view

Create a view in AnalyticDB for MySQL using DBeaver.


CREATE VIEW `school_view` as select * from school;

Statistics:
Updated Rows: 0
Query: CREATE VIEW `school_view` as select * from school
Finish time: Tue Nov 19 16:45:56 CST 2019

Query the structure of a view

Inspect the definition of a view.


SHOW CREATE VIEW school_view;

-- Result:
-- View: school_view
-- Create View: CREATE VIEW `test4dmp`.`school_view` AS SE...
-- character_set_client: utf8
-- collation_connection: utf8_general_ci

查看视图结构2

Query a view

Run a query against a view and review the results.

查看视图数据查看视图数据2

What's next