I started a project on another computer using docker, node, sequelize, adminer and mysql. Then I got a new computer and downloaded the project but when trying to start the project on the new computer I got the following error:
Unhandled rejection SequelizeConnectionError: Client does not support authentication protocol requested by server; consider upgrading MySQL client
This error only affects a specific part of the project and not the part with adminer which in this state works fine. I can log in to it and see the database created with docker. I then solve the error with the following code:
docker exec -it ticketgo_database_1 bash
mysql --user=root --password
ALTER USER 'root' IDENTIFIED WITH mysql_native_password BY ‘pass’;
Now that specific part of the code works but when i try to log in to Adminer I get the following error:
mysql has gone away
It most certainly has to do with the fix to the first error but I'm really not sure why?