Setting up a database connection
This recipe shows how a database connection can be easily created using the Talend supplied wizard. Note that this recipe and the next use the connection cookbookDB_myCopy
. This version of the database metadata is used for demonstration only. All the other jobs in this chapter use the connection cookbookDB
unless explicitly stated otherwise.
Getting ready
Ensure that MySQL is running and you have executed the command mentioned in the Introduction section.
How to do it...
The steps to be performed are as follows:
Navigate to Metadata | Db Connections. Right-click on it and select Create connection.
Set the name as
cookbookDB_myCopy
and click on Next.Select the database as MySQL from the drop-down list and then enter the details as shown in the following screenshot: Note that I have set up a
talend
login on MySQL, so I use this. You will need to set up the information to match your database credentials.Click on the Check button and you should see the message:
cookbookDB_myCopy...