kokolegorille
Hello everyone,
Anyone having success using mariaex with mysql 8.0.x?
There is an open issue, but adding to my.cnf …
[mysqld]
default-authentication-plugin=mysql_native_password
… does not solve the problem. I still got this error when trying to create the repo.
12:27:42.618 [error] GenServer #PID<0.198.0> terminating
** (Mariaex.Error) (1251): Client does not support authentication protocol requested by server; consider upgrading MySQL client
(db_connection) lib/db_connection/connection.ex:163: 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 Ilox.Repo couldn't be created: (1251): Client does not support authentication protocol requested by server; consider upgrading MySQL client
The versions I use are
MacOSX High Sierra
Elixir 1.7.3 / OTP21
Phoenix 1.4 rc-01
Mysql 8.0.12
Ecto 2.2.1
Mariaex 0.8.4
Thanks for taking time
Trending in Questions
I’m working on a project that simulates the bumbl example in the programming phoenix book. It acts almost like an email client. We have a...
New
Hello!
Could someone please give me a help/sample code, how to delete a file from s3 using waffle/waffle_ecto from Phoenix app.
I creat...
New
I’m seeing that a list inside a Kino.DataTable will be interpreted as a charlist, even if the Kino.configure() is set to charlists: :as_l...
New
So my question is quite simple and i have found no conclusive answer on forum, google or AI.
Should we use :erlang.float for Integer to ...
New
Hi, I’ve just set up an application with ash_authentication. There is only magic link strategy for now, so there is no confirmation add o...
New
If a change or preparation module uses Ash.Changeset.get_argument/2 or Ash.Query.get_argument/2 (or any of the other get_argument functio...
New
apply_graft/2 doesn’t rewrite an add_many sub-workflow’s deps on an add step. Grafted jobs cancel with “upstream job was deleted”
Version...
New
Other Trending Topics
I am happy to introduce the very α version of the new programming language compiled to BEAM.
Welcome Cure.
It has literally three kille...
New
Hobbes is a low-level distributed database for the Elixir programming language.
Hobbes provides a simple, safe, and scalable storage lay...
New
Hi there! We created Gust: A task orchestrator inspired by Airflow.
For those who have never heard about Aiflow, it’s a Python-based wor...
New
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New
Xamal is a deployment tool for Elixir apps that deploys native releases to bare metal servers over SSH. It’s a port of GitHub - basecamp/...
New
Hello everyone. After busy few months I am happy to announce v0.1.0 of Emerge & Solve.
They are GUI (Emerge) and State management (S...
New
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #library
- #deployment
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #elixirconf
- #channels
- #exunit
- #discussion
- #code-sync
- #podcasts
- #javascript
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #elixirconf-us
- #blog-post
- #ai
- #elixir-ls
- #phoenix_html
- #iex
- #graphql
- #genstage
- #websockets
- #supervisor
- #advent-of-code
- #distillery
- #processes
- #api
- #forms
- #hex
- #security
- #metaprogramming










Showing Posts 1 to 10- Show Best Posts
- Show All (oldest first)
- Show All (newest first)
wojtekmach
Could you check what’s the authentication plugin for the user you’re trying to log in as?
E.g.:
The default auth plugin for mysql 8.0 is
caching_sha2_passwordand so if the user was created before you changed the default auth plugin that’s probably the issue.kokolegorille
Oh, thanks… I got caching_sha2_password for my user…
I will recreate a new user
kokolegorille
That was it…
droping the user, and recreate allows me to create the Repo
Thank You @wojtekmach
tompave
Hi, I’ve read the issue on GitHub and the previous comments of this thread, but this is still not working for me.
Also I can’t really understand what the solution suggested in the comments above was. Should the plugin be changed to
caching_sha2_password? Or tomysql_native_password? What worked?At the moment, I’m trying to connect as
rootlocally, and these are my users:So far I’ve altered, dropped and recreated
root@localhostso that it hadmysql_native_passwordorcaching_sha2_password. Nothing worked.kokolegorille
You should use mysql_native_password, if You did wrong, as I did, just drop the user and recreate.
BTW I did not use root, but elixir… and configured config files with this user. How do You create your user?
tompave
Hi, thanks for getting back to this.
The user was created ages ago when MySQL was first installed on this dev machine. Yesterday I upgraded MySQL to 8.0 and I ran the mysql upgrade command. Mariaex t was connecting fine before that.
I have already dropped and recreated
. Yes, I have invoked
'root'@'localhost', but it didn’t workFLUSH PRIVILEGES;.Can you please share the commands that you used to drop and recreate the user? I’m more a Postgres person myself, and I might have done this the wrong way.
NobbZ
Is the host you connect from recognized as
localhost? Maybe its bare IP ormylaptop.local. I have no clue how MySQL does this host thing.If I were you, I’d alter all users.
Or explicitely create a non root user for the application, that has known to work settings.
kokolegorille
As mentionned in the OP, the issue is related to MySQL 8.x
If You have recently upgraded, then You need to change the auth settings, and recreate users.
kokolegorille
I think the syntax is
The second command gives rights… You might change
tompave
Thanks @kokolegorille.
I’ve now tried again and I’ve run exactly those commands, creating a new user. I’ve then configured Ecto with the new username, deleted the compiled beam artifacts from
_build, and then tried again.I am still getting the same error: