<?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 Invalid port error when trying to read from PlanetScale MySQL databse in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/invalid-port-error-when-trying-to-read-from-planetscale-mysql/m-p/21754#M14868</link>
    <description>&lt;P&gt;Using the code below I am attempting to connect to a PlanetScale MySQL database. I get the following error: java.sql.SQLException: error parsing url : Incorrect port value. However the port is the default 3306, and I have used the correct url based on the PlanetScale documentation, and other members of my team can connect to it with this url using other platforms. Is Databricks doing something else here that I can't see?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;remote_table = (spark.read&lt;/P&gt;&lt;P&gt;  .format("jdbc")\&lt;/P&gt;&lt;P&gt;  .option("driver", driver)\&lt;/P&gt;&lt;P&gt;  .option("url", url)\&lt;/P&gt;&lt;P&gt;  .option("dbtable", table)\&lt;/P&gt;&lt;P&gt;  .option("user", username)\&lt;/P&gt;&lt;P&gt;  .option("password", passwd)\&lt;/P&gt;&lt;P&gt;  .option("ssl", True) \&lt;/P&gt;&lt;P&gt;  .option("sslmode", "require" ) \&lt;/P&gt;&lt;P&gt;  .option("sslcert", "dbfs:/mnt/folder/admin/client-cert.pem")\&lt;/P&gt;&lt;P&gt;  .option("sslkey", "dbfs:/mnt/folder/admin/client-key.pem" )\&lt;/P&gt;&lt;P&gt;  .load()&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;</description>
    <pubDate>Fri, 18 Nov 2022 12:51:47 GMT</pubDate>
    <dc:creator>190809</dc:creator>
    <dc:date>2022-11-18T12:51:47Z</dc:date>
    <item>
      <title>Invalid port error when trying to read from PlanetScale MySQL databse</title>
      <link>https://community.databricks.com/t5/data-engineering/invalid-port-error-when-trying-to-read-from-planetscale-mysql/m-p/21754#M14868</link>
      <description>&lt;P&gt;Using the code below I am attempting to connect to a PlanetScale MySQL database. I get the following error: java.sql.SQLException: error parsing url : Incorrect port value. However the port is the default 3306, and I have used the correct url based on the PlanetScale documentation, and other members of my team can connect to it with this url using other platforms. Is Databricks doing something else here that I can't see?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;remote_table = (spark.read&lt;/P&gt;&lt;P&gt;  .format("jdbc")\&lt;/P&gt;&lt;P&gt;  .option("driver", driver)\&lt;/P&gt;&lt;P&gt;  .option("url", url)\&lt;/P&gt;&lt;P&gt;  .option("dbtable", table)\&lt;/P&gt;&lt;P&gt;  .option("user", username)\&lt;/P&gt;&lt;P&gt;  .option("password", passwd)\&lt;/P&gt;&lt;P&gt;  .option("ssl", True) \&lt;/P&gt;&lt;P&gt;  .option("sslmode", "require" ) \&lt;/P&gt;&lt;P&gt;  .option("sslcert", "dbfs:/mnt/folder/admin/client-cert.pem")\&lt;/P&gt;&lt;P&gt;  .option("sslkey", "dbfs:/mnt/folder/admin/client-key.pem" )\&lt;/P&gt;&lt;P&gt;  .load()&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;</description>
      <pubDate>Fri, 18 Nov 2022 12:51:47 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/invalid-port-error-when-trying-to-read-from-planetscale-mysql/m-p/21754#M14868</guid>
      <dc:creator>190809</dc:creator>
      <dc:date>2022-11-18T12:51:47Z</dc:date>
    </item>
    <item>
      <title>Re: Invalid port error when trying to read from PlanetScale MySQL databse</title>
      <link>https://community.databricks.com/t5/data-engineering/invalid-port-error-when-trying-to-read-from-planetscale-mysql/m-p/21755#M14869</link>
      <description>&lt;P&gt;HI @Rachel Cunningham​&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;maybe you can share your `driver` and  `url` value (masked)?&lt;/P&gt;</description>
      <pubDate>Fri, 18 Nov 2022 13:15:26 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/invalid-port-error-when-trying-to-read-from-planetscale-mysql/m-p/21755#M14869</guid>
      <dc:creator>Pat</dc:creator>
      <dc:date>2022-11-18T13:15:26Z</dc:date>
    </item>
    <item>
      <title>Re: Invalid port error when trying to read from PlanetScale MySQL databse</title>
      <link>https://community.databricks.com/t5/data-engineering/invalid-port-error-when-trying-to-read-from-planetscale-mysql/m-p/21756#M14870</link>
      <description>&lt;P&gt;driver = "org.mariadb.jdbc.Driver"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;url = f"jdbc:mysql://{user}:{password}@{database_host}/{database_name}?sslaccept=strict"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The PlanetScale url does not require the host value in the url string and is set to 3306 as default. I have tried adding it and am met with an invalid url error. &lt;/P&gt;</description>
      <pubDate>Fri, 18 Nov 2022 13:18:56 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/invalid-port-error-when-trying-to-read-from-planetscale-mysql/m-p/21756#M14870</guid>
      <dc:creator>190809</dc:creator>
      <dc:date>2022-11-18T13:18:56Z</dc:date>
    </item>
  </channel>
</rss>

