Please follow step by step command
sudo apt update
sudo apt install mysql-server
After installation please follow below steps:
sudo mysql
Now update the native plugin for root user
USE mysql;
UPDATE user SET plugin='mysql_native_password' WHERE User='root';
FLUSH PRIVILEGES;
Now change the password using below commands:
ALTER USER 'root'@'localhost' IDENTIFIED BY 'new_password_here';
Now restart your mysql service
sudo service mysql restart
Run below command to connect mysql workbench to work correctly
sudo snap connect mysql-workbench-community:password-manager-service
sudo snap connect mysql-workbench-community:ssh-keys
Top comments (0)