Database Connection

Database connections ..

Connect to the data source.

• Overview of Steel Wheels Database

• Connect to Sampledata DB with a DB Management Tool

• Connect to Sampledata with Data Integration

Download JDBC Driver

Ensure you have downloaded the supported JDBC driver.

Copy the driver in the /lib directory.

Reboot to register the driver.


To create a new transformation

  1. In Spoon, click File > New > Transformation.

Any one of these actions opens a new Transformation tab for you to begin designing your transformation.

  • By clicking New, then Transformation

  • By using the CTRL-N hot key

This section is for reference only.

The Container has already been deployed and is exposed on port: 3306

Installation of Maria DB

Ensure Docker Desktop is up and running.

  1. In Docker Desktop Terminal, create a MariaDB directory & copy compose.yml.

cd\
mkdir C:\MariaDB 
copy C:\Workshop--Data-Integration\Scripts\compose.yml C:\MariaDB\compose.yml
  1. Execute compose.yml.

cd\
cd C:\MariaDB
docker compose up -d
services:
  mysql:
    container_name: mariadb
    image: mariadb:latest
    # Uncomment below when on Mac M1
    # platform: linux/arm64/v8
    command: --default-authentication-plugin=mysql_native_password
    restart: always
    environment:
      MYSQL_ROOT_PASSWORD: password
    ports:
      - 3306:3306
  
  adminer:
    image: adminer
    restart: always
    ports:
      - 8050:8080
  1. Check the Container is up and running in Docker.

docker ps -a
CONTAINER ID   IMAGE            COMMAND                  CREATED         STATUS              PORTS                    NAMES
a8b310e368af   mariadb:latest   "docker-entrypoint.s…"   2 minutes ago   Up About a minute   0.0.0.0:3306->3306/tcp   mariadb
0b59cc5524dd   adminer          "entrypoint.sh php -…"   2 minutes ago   Up About a minute   0.0.0.0:8050->8080/tcp   mariadb-adminer-1
  1. You can also check in Visual Studio Code


Load sampledata.sql script

  1. Open VSCode: C:\Workshop--Data-Integration\Scripts\sampledata_mysql.sql

  2. Copy & paste sections of the script into DBeaver SQL script & execute.

  1. Just double check that the tables have been created and populated.

Last updated