GithubHelp home page GithubHelp logo

MySQL connection error about mariaex HOT 6 CLOSED

xerions avatar xerions commented on July 18, 2024
MySQL connection error

from mariaex.

Comments (6)

liveforeverx avatar liveforeverx commented on July 18, 2024

Hi! That is because port is integer, not a string...(3306 is default)

The postgrex adaptor crashed with same error too.

But may be, there type checking for options needed? Or what would be best solution for this crash for you?

from mariaex.

liveforeverx avatar liveforeverx commented on July 18, 2024

Sorry, because of worst internet connection, the message was sent many times.

from mariaex.

jquadrino avatar jquadrino commented on July 18, 2024

I fixed that but I still consistently get

Mariaex.Connection.start_link(%{user: "root", port: 3306})
** (exit) exited in: GenServer.call(#PID<0.79.0>, {:connect, %{hostname: "localhost", password: nil, port: 3306, user: "root"}}, 5000)
    ** (EXIT) time out
     (elixir) lib/gen_server.ex:356: GenServer.call/3
    (mariaex) lib/mariaex/mariaex.ex:62: Mariaex.Connection.start_link/1

from mariaex.

jquadrino avatar jquadrino commented on July 18, 2024

and this

iex(1)> Mariaex.Connection.start_link(%{user: "root"})
** (EXIT from #PID<0.126.0>) an exception was raised:
    ** (ArgumentError) argument error
        :erlang.byte_size(nil)
        (mariaex) lib/mariaex/messages.ex:89: Mariaex.Messages.encode_handshake_resp/1
        (mariaex) lib/mariaex/messages.ex:160: Mariaex.Messages.encode/2
        (mariaex) lib/mariaex/protocol.ex:109: Mariaex.Protocol.msg_send/3
        (mariaex) lib/mariaex/protocol.ex:38: Mariaex.Protocol.dispatch/2
        (mariaex) lib/mariaex/mariaex.ex:390: Mariaex.Connection.process/2
        (mariaex) lib/mariaex/mariaex.ex:317: Mariaex.Connection.handle_info/2
        (stdlib) gen_server.erl:593: :gen_server.try_dispatch/4

from mariaex.

jquadrino avatar jquadrino commented on July 18, 2024

this works

iex(2)> Mariaex.Connection.start_link(%{user: "root", database: "ecto_test"})
{:ok, #PID<0.115.0>}

from mariaex.

liveforeverx avatar liveforeverx commented on July 18, 2024

Ok, close for now. If you want to have better errors for some cases, please let me know.

from mariaex.

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.