Failed to connect to mysql8.0

G:\ElixirWorkSpace\SummerGao\summergao_phoenix>mix ecto.create

15:59:35.295 [error] GenServer #PID<0.238.0> terminating
** (ArgumentError) argument error
    (stdlib 3.12) :binary.part(<<58, 118, 25, 35, 48, 106, 121, 119, 9, 22, 98, 27, 105, 109, 52, 15, 22, 119, 61, 98>>, 0, 24)
    (myxql 0.4.0) lib/myxql/protocol/auth.ex:19: MyXQL.Protocol.Auth.encrypt_sha_password/3
    (myxql 0.4.0) lib/myxql/client.ex:434: MyXQL.Client.perform_public_key_auth/5
    (myxql 0.4.0) lib/myxql/client.ex:303: MyXQL.Client.do_handshake/2
    (myxql 0.4.0) lib/myxql/client.ex:284: MyXQL.Client.handshake/2
    (myxql 0.4.0) lib/myxql/connection.ex:32: MyXQL.Connection.connect/1
    (db_connection 2.2.1) lib/db_connection/connection.ex:69: DBConnection.Connection.connect/2
    (connection 1.0.4) lib/connection.ex:622: Connection.enter_connect/5
    (stdlib 3.12) proc_lib.erl:249: :proc_lib.init_p_do_apply/3
Last message: nil
State: MyXQL.Connection
** (Mix) The database for SummergaoPhoenix.Repo couldn't be created: %RuntimeError{message: "killed"}
1 Like