Connect with MySQL DB through MuleSoft

 

We can connect with MySQL DB through MuleSoft by adding the dependent jar and providing the connection details

Create a project in Anypoint Studio

Connect with MySQL DB through MuleSoft

 

Drag and Drop database activity in a flow

Connect with MySQL DB through MuleSoft

 

Click on the Connector Configuration Add button and select the MySQL option from the connection drop down

Connect with MySQL DB through MuleSoft

 

Now Click on Required Libraries Configure and select Add Maven dependency

Connect with MySQL DB through MuleSoft

 

Copy the dependency from – select the version as per your installed MySQL

https://mvnrepository.com/artifact/mysql/mysql-connector-java/8.0.22

 

<dependency>
    <groupId>mysql</groupId>
    <artifactId>mysql-connector-java</artifactId>
    <version>8.0.22</version>
</dependency>

 

Click Finish

 

The dependency will be installed in the project

 

Provide the details

 

Click Test Connection

 

  
Thank you for taking out time to read the above post. Hope you found it useful. In case of any questions, feel free to comment below. Also, if you are keen on knowing about a specific topic, happy to explore your recommendations as well.
 
For any latest updates or posts on our website, you can follow us on LinkedIn. Look forward to connecting with you there.


Share this:
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments