I upgraded both MySQL work-bench to version 8.0 and MySQL server to version 8.0.15. I restarted my computer and I opened the workbench. I found my old connection. When I click test connection I get successful result.
When I double click on my connection I get this error message.
I tried to login to the MySQL server using and reset the password:
ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'password';
Please, what could be the problem?
I forgot what was the port number when I set up the connection in the old... version.
EDIT:
In the terminal, this is an attempt and it seems working. Just the workbench which I used to work from. Note that I use Ubunut 18.04:
$ mysql -u root -p -h 127.0.0.1 -P 3306
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 37
Server version: 8.0.15 MySQL Community Server - GPL
Copyright (c) 2000, 2019, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql>
The SQL v8.0 has changed the authentification protocol:
On v8.0 it's using a
caching_sha2_password
.Before it was
mysql_native_password
.To create new user on previous version it was:
To create new user on v8.0 running this commands below (replace root and password by you're own of course !) :
To change the password encryption from old version user:
I hope you fix your problem with that :)
From Commentz:
The error message you're getting is:
To solve this, run,
in terminal. If doesn't solve the problem, run
in MySQL.