Database Connections
Database connections ..
Create a new transformation
Use any of these options to open a new transformation tab:
Select File > New > Transformation
Use
Ctrl+N(Windows/Linux) orCmd+N(macOS)
DBeaver
DBeaver is optional. Use it to confirm the database is reachable before you touch PDI.
DBeaver CE ships with most drivers. That makes it a fast connectivity check.
MySQL Database
If you completed the Setup, you should have a MySQL Docker container.
It should be exposed on port 3306 and include the sampledata database.
Launch DBeaver and select MySQL.

Configure the connection:
Username:
rootPassword:
password


Test the connection.

Expand Databases > sampledata > Tables.

Open a SQL window and run a test query:

Pentaho Data Integration Connection
Create the connection once. Reuse it in steps like Table input, Table output, and Database lookup.
In this lab, you connect to the Steel Wheels sampledata database (MySQL).
Define a database connection (MySQL)
Create a transformation.
In Spoon, select File > New > Database connection.
The Database connection dialog opens.

Enter the following details:
Connection name:
MySQL: sampledataConnection type: MySQL
Access: Native (JDBC)
Host name:
localhost(or your Docker host IP)Database name:
sampledataUsername:
pentaho_adminPassword:
password

Select Test.
Click on the View tab, expand Database Connections.
Right-click MySQL:sampledata and choose Explore from the menu options:
Preview the first 100 rows of ..
Return the first 100 rows of the selected table.
Preview first .. rows of ..
Enter the number of rows to preview
Number of rows ..
Displays number of rows
Generate DDL
Displays DDL statement that creates table.
Generate DDL for other connection
Select connection to display DDL. Syntax is based on database engine.
Open SQL for ..
Edit SELECT statement
Truncate table
Deletees all the rows from selected table
In the Database Explorer window, expand Sampledata > Tables

Right-click the
CUSTOMERStable and choose Preview first 100.Examine the customer data.
Select View SQL.

Click Execute.

Last updated
Was this helpful?

