Coder Social home page Coder Social logo

Comments (4)

mattrobenolt avatar mattrobenolt commented on May 24, 2024

I'm not sure how that's true. There's no way database-js can work against a local mysql database. Even if the protocol in the url you pass is mysql://.. we internally just use https always since this library strictly interacts with PlanetScale over https.

Do you have more information about what you think happened?

from database-js.

Meierschlumpf avatar Meierschlumpf commented on May 24, 2024

Yeah it was just me beeing dumb, I was using a mysql connection string for a local database but in my app databasejs was used. So it tried to connect to localhost:443 - The only improvement i see is a validator of the url, so that if someone stumbles over the same issue, he directly knows whats the problem 😄

But if it's getting rejected then it's fine to 👍🏼

from database-js.

mattrobenolt avatar mattrobenolt commented on May 24, 2024

Ah, ok, yeah, that at least makes sense in that case then that it was trying to connect to a local https server. I think if anything, we should guard against a localhost, but even that, arguably is valid. I've considered writing an HTTP proxy for a local mysql instance so database-js can be used locally against a local mysql. It's come up a few times, so think all around, this is just user error and misconfiguration. I don't think we can sensible validate anything.

from database-js.

Meierschlumpf avatar Meierschlumpf commented on May 24, 2024

Yeah your right, thanks for the quick feedback and have a good one 👍🏼

from database-js.

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.