DBeaver Installation


Follow the instruction in the second link.

Connection to database server

  1. Turn on VPN, open DBeaver application.
  2. Click the icon of + socket at the top left corner.
  3. Choose the suitable database driver, like MariaDB. Then Next.
  4. Enter your server host, database name, authentication. Then Test Connection.
  5. If connected, press Finish.

View Tables

  1. Go to Database Navigator.
  2. Expand Databases inside ip address.
  3. Right click Tables, to View Tables. View item. SELECT * FROM name.item;

SQL Editor

  1. Run SELECT * FROM namedb.item LIMIT 10;.

SQL Alchemy

Install by


pip3 install sqlalchemy
    

To connect your database server,


import sqlalchemy as db
import pandas as pd
pd.set_option('display.max_columns', None)
conn_str = f"mysql+pymysql://{Username}:{Password}@{ip_addres+port}/{Database_name}"
with db.create_engine(conn_str).connect() as conn:
    sql = """select * from table1 limit 10 offset 10;"""
    df = pd.read_sql_query(sql,conn)
    

References


  1. DBeaver Community Download
  2. Install and Configure DBeaver on Ubuntu 20.04/18.04/16.04 & Debian 10/9
  3. Install Percona MySQL Server 8.0 on Ubuntu 18.04 / Debian 10
  4. How To Install MariaDB 10.4 on Ubuntu 18.04 / Ubuntu 16.04