your connection attempt failed for user 'root' to the mysql server at localhost ubuntu code example
Example: your connection attempt failed for user 'root' ubuntu workbench
ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'password';