<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic How to install AWS .pem file in databricks cluster to make a db connection to MySql RDS in Get Started Discussions</title>
    <link>https://community.databricks.com/t5/get-started-discussions/how-to-install-aws-pem-file-in-databricks-cluster-to-make-a-db/m-p/38666#M5617</link>
    <description>&lt;P&gt;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.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have the .pem file with me. Could anyone help on how install this in Databricks cluster and establish the connection to RDS.&lt;/P&gt;&lt;P&gt;Below is the connection properties I used.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;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()&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 28 Jul 2023 12:51:47 GMT</pubDate>
    <dc:creator>DineshKumar</dc:creator>
    <dc:date>2023-07-28T12:51:47Z</dc:date>
    <item>
      <title>How to install AWS .pem file in databricks cluster to make a db connection to MySql RDS</title>
      <link>https://community.databricks.com/t5/get-started-discussions/how-to-install-aws-pem-file-in-databricks-cluster-to-make-a-db/m-p/38666#M5617</link>
      <description>&lt;P&gt;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.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have the .pem file with me. Could anyone help on how install this in Databricks cluster and establish the connection to RDS.&lt;/P&gt;&lt;P&gt;Below is the connection properties I used.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;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()&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jul 2023 12:51:47 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/how-to-install-aws-pem-file-in-databricks-cluster-to-make-a-db/m-p/38666#M5617</guid>
      <dc:creator>DineshKumar</dc:creator>
      <dc:date>2023-07-28T12:51:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to install AWS .pem file in databricks cluster to make a db connection to MySql RDS</title>
      <link>https://community.databricks.com/t5/get-started-discussions/how-to-install-aws-pem-file-in-databricks-cluster-to-make-a-db/m-p/39323#M5618</link>
      <description>&lt;P&gt;Hi, Could you please provide the error code or the full error stack? Please tag&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/26078"&gt;@Debayan&lt;/a&gt;&amp;nbsp;with your next comment which will notify me. Thank you!&lt;/P&gt;</description>
      <pubDate>Tue, 08 Aug 2023 06:44:27 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/how-to-install-aws-pem-file-in-databricks-cluster-to-make-a-db/m-p/39323#M5618</guid>
      <dc:creator>Debayan</dc:creator>
      <dc:date>2023-08-08T06:44:27Z</dc:date>
    </item>
  </channel>
</rss>

