---
title: "Set up DataSync Agent to share to MySQL"
canonical: "https://docs.perspectium.com/space/Lithium/2326785/Set%20up%20DataSync%20Agent%20to%20share%20to%20MySQL"
format: markdown
---
You can configure your  DataSync Agent  to share data from ServiceNow or Salesforce to a MySQL database by changing some additional  configurations in your  agent.xml  file . Prerequisites  First, you will need to  Install the DataSync Agent .  You will also need to create a ServiceNow dynamic share/bulk share.   Make sure to  stop running your DataSync Agent  before making any Agent configuration changes. As of  Lithium 9.2.0 : Only  MySQL 8.0+  is supported. By default, we include  allowPublicKeyRetrieval=true  in  <database_parms>  to prevent the  com.mysql.cj.exceptions.CJException: Public Key Retrieval is not allowed   error. See  MySQL Connection String Options  for more details on this configuration and if you want to configure your MySQL without this option.  Procedure To set up your DataSync Agent to share application data to a MySQL database, follow these steps: