Code Monkey home page Code Monkey logo

Comments (7)

kiersten-stokes avatar kiersten-stokes commented on June 2, 2024 2

Ah I see! I didn't catch that you were using the helm chart earlier. The mysql properties definitely look sound. I tried it out with the latest version of MySQL and didn't run into this issue, but can reproduce using version 5.7.40, like you said! Based on my research, I think the driver v5.1.48 and MySQL v5.7.40 disagree on security protocols. For compatibility reasons the driver doesn't enable TLSv1.2 and higher by default. A workaround here would be to add the below option to your mysql connection string in the properties:

connection-url=jdbc:mysql://X.X.X.X:3306?enabledTLSProtocols=TLSv1.2&serverTimezone=UTC

Hopefully that does the trick!

from presto.

clown-k avatar clown-k commented on June 2, 2024 1

Thanks for your help! I successfully solved the trick when I added the configuration. ^_^

from presto.

clown-k avatar clown-k commented on June 2, 2024

If I want to use MYSQL database version 5.7 is there any way to solve this problem?

from presto.

kiersten-stokes avatar kiersten-stokes commented on June 2, 2024

Hi @clown-k - I have a few follow-up questions for you! Are you submitting your query using the presto CLI? Also, just to clarify, you mention a MySQL version of 5.7 - is that the version of your actual MySQL database? If the answer to both of these is yes, we should probably take a look at your mysql.properties file to see what the error might be

from presto.

clown-k avatar clown-k commented on June 2, 2024

Hi @kiersten-stokes - I created mysql.properties using values.yaml of the official Chart.

#Catalogs
catalog: 
  mysql: |-
    connector.name=mysql
    connection-url=jdbc:mysql://X.X.X.X:3306?serverTimezone=UTC
    connection-user=X
    connection-password=X

The configuration file actually generated in Pod:

$ cat /opt/presto-server/etc/catalog/mysql.properties
    connector.name=mysql
    connection-url=jdbc:mysql://X.X.X.X:3306?serverTimezone=UTC
    connection-user=X
    connection-password=X

from presto.

clown-k avatar clown-k commented on June 2, 2024

I don't think mysql.propertiesis erroneous. Because mysql-connector-java-5.1.48.jar is used in /opt/presto-server/plugin/mysql/, and when I use version 5.1.48 of MYSQL database(not on the k8s), it works.

from presto.

kiersten-stokes avatar kiersten-stokes commented on June 2, 2024

@clown-k glad to hear it!

from presto.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.