I am trying to make a connection between AWS Mysql RDS and Databricks. I am using the below code to establish the connection. But its failed due to certificate is not installed.
I have the .pem file with me. Could anyone help on how install this in Databricks cluster and establish the connection to RDS.
Below is the connection properties I used.
table = "test_table"
database_host = "test-db-dev.cluster-ro-pkh5s13hvg.us-west-2.rds.amazonaws.com"
database_port = "3306"
database_name = "test_db"
user = "test_user"
password = "12345678"
url = f"jdbc:mysql://{database_host}:{database_port}/{database_name}"
df_rds_table = spark.read \
.format("jdbc") \
.option("driver","com.mysql.cj.jdbc.Driver") \
.option("url", url) \
.option("dbtable", table) \
.option("user", user) \
.option("password", password) \
.load()