Install MySQL (MySQL Server) on your Ubuntu 22.04 LTS
In this video i have shown how you can download and install MySQL(mysql-server) on your ubuntu operating system specific on Ubuntu 22.04 LTS or 20.04 LTS or any newer version of ubuntu operating system. I have also shown how to fix the issue To fix Access denied for user ‘root’@‘localhost’ while opening mysql using mysql -u root -p.
Commands Used :
==============
sudo apt update
sudo apt-get install mysql-server
To check the version :
mysql – -version
To fix Access denied for user ‘root’@‘localhost’
sudo mysql -u root -p
show databases;
use mysql
update user set plugin=‘mysql_native_password’ where user=‘root’;
flush privileges;
Then finally Type :
mysql -u root -p
To create database :
create database demo;
Check all the available databases :
show databases;
==================================
PayPal : https://paypal.me/codewitharjun
Patreon : https://www.patreon.com/codewitharjun
➡️ Subscribe : https://www.youtube.com/codewitharjun
Stay Connected :
➡️ LinkedIn : https://np.linkedin.com/in/arjungautam1
➡️ Github : https://github.com/arjungautam1
Join Community :
➡️Discord : https://discord.gg/cn2x3jhMW4
Follow me on :
➡️ Medium: https://codewitharjun.medium.com/
➡️ Dev.to : https://dev.to/codewitharjun
#CodeWithArjun #Programming
Comments are closed.