Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mariaex error #222

Open
active-infotronics opened this issue May 8, 2018 · 8 comments
Open

mariaex error #222

active-infotronics opened this issue May 8, 2018 · 8 comments

Comments

@active-infotronics
Copy link

mix ecto.create
** (Mix) The database for Myapp.Repo couldn't be created: an exception was raised:
** (RuntimeError) Connect raised a CaseClauseError error. The exception details are hidden, as
they may contain sensitive data such as database credentials.

    (mariaex) lib/mariaex/protocol.ex:1155: Mariaex.Protocol.abort_statement/3
    (mariaex) lib/mariaex/protocol.ex:227: Mariaex.Protocol.handle_handshake/3
    (mariaex) lib/mariaex/protocol.ex:166: Mariaex.Protocol.handshake_recv/2
    (db_connection) lib/db_connection/connection.ex:135: DBConnection.Connection.connect/2
    (connection) lib/connection.ex:622: Connection.enter_connect/5
    (stdlib) proc_lib.erl:247: :proc_lib.init_p_do_apply/3

05:30:56.398 [error] GenServer #PID<0.724.0> terminating
** (RuntimeError) Connect raised a CaseClauseError error. The exception details are hidden, as
they may contain sensitive data such as database credentials.

(mariaex) lib/mariaex/protocol.ex:1155: Mariaex.Protocol.abort_statement/3
(mariaex) lib/mariaex/protocol.ex:227: Mariaex.Protocol.handle_handshake/3
(mariaex) lib/mariaex/protocol.ex:166: Mariaex.Protocol.handshake_recv/2
(db_connection) lib/db_connection/connection.ex:135: DBConnection.Connection.connect/2
(connection) lib/connection.ex:622: Connection.enter_connect/5
(stdlib) proc_lib.erl:247: :proc_lib.init_p_do_apply/3

Last message: nil
State: Mariaex.Protocol

@rebing
Copy link

rebing commented May 19, 2018

I have the same error after upgrading to MySQL 8.0

@pierot
Copy link

pierot commented Jul 11, 2018

We occasionally run into the same error.

@dragonwasrobot
Copy link

Can also confirm that the error happens when upgrading to MySQL 8.0, it disappears when downgrading to MySQL 5.7.

@Hokutosei
Copy link

I thought I was the only who is having the same error while following the tutorial using mysql Ver 8.0.11 for Linux on x86_64 (MySQL Community Server - GPL) but everything seems to be working fine if I use MariaDB 10.3

$ mix ecto.create

17:37:41.475 [error] GenServer #PID<0.200.0> terminating
** (RuntimeError) Connect raised a FunctionClauseError error. The exception details are hidden, as
they may contain sensitive data such as database credentials.

    (mariaex) lib/mariaex/protocol.ex:1006: Mariaex.Protocol.password/3
    (mariaex) lib/mariaex/protocol.ex:207: Mariaex.Protocol.handle_handshake/3
    (mariaex) lib/mariaex/protocol.ex:166: Mariaex.Protocol.handshake_recv/2
    (db_connection) lib/db_connection/connection.ex:135: DBConnection.Connection.connect/2
    (connection) lib/connection.ex:622: Connection.enter_connect/5
    (stdlib) proc_lib.erl:249: :proc_lib.init_p_do_apply/3
Last message: nil
State: Mariaex.Protocol
** (Mix) The database for HelloPhoenix.Repo couldn't be created: an exception was raised:
    ** (RuntimeError) Connect raised a FunctionClauseError error. The exception details are hidden, as
they may contain sensitive data such as database credentials.

        (mariaex) lib/mariaex/protocol.ex:1006: Mariaex.Protocol.password/3
        (mariaex) lib/mariaex/protocol.ex:207: Mariaex.Protocol.handle_handshake/3
        (mariaex) lib/mariaex/protocol.ex:166: Mariaex.Protocol.handshake_recv/2
        (db_connection) lib/db_connection/connection.ex:135: DBConnection.Connection.connect/2
        (connection) lib/connection.ex:622: Connection.enter_connect/5
        (stdlib) proc_lib.erl:249: :proc_lib.init_p_do_apply/3

@Kitton
Copy link

Kitton commented Jul 17, 2018

I can't find this info anywhere, but looks like currently mariaex doesn't support MySQL 8.0.x? Can anyone from maintainers confirm it?

@sigu
Copy link

sigu commented Sep 11, 2018

Seems like it, while running a gitlab CI task it kept failing on the same but after downgrading to mysql:5.7 now everything is working as expected

@b3k
Copy link

b3k commented Oct 5, 2018

MySQL 8 changes the default authorization plugin, to wokraround you need to to start MySQL with parameter: --default-authentication-plugin=mysql_native_password or include this in your my.cnf:

[mysqld]
default-authentication-plugin=mysql_native_password

@sahilpaudel-pe
Copy link

I am facing this intermittently with mysql:5.7 as well, it goes away when I deploy again only to comeback again later.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants