To install mysql in Ubuntu please enter the below commands in terminal
sudo apt-get install mysql-server
Sudo mysql_secure_installation
Now update the password
sudo mysql
ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password
BY 'password';
FLUSH PRIVILEGES;
Quit mysql console using exit command.
Now try mysql -u root –p
It will ask for root password, enter the password
and you will find the mysql console
No comments:
Post a Comment