Reference Guidance
https://medium.com/@jasonrbodie/how-to-install-mysql-on-ubuntu-24-04-bfd11f73224b
Install or Uninstall MySQL
bash
sudo apt update
sudo apt install mysql-server-8.0
sudo apt purge mysql-server-8.0
Start or Stop MySQL
bash
sudo systemctl enable mysql.service
sudo systemctl start mysql.service
sudo systemctl stop mysql.service
sudo systemctl restart mysql.service
Initialize after First Installation
kotlin
sudo mysql_secure_installation
Set Default Password
bash
sudo mysql
SET GLOBAL validate_password.length=9;
SET GLOBAL validate_password.policy=LOW;
ALTER USER 'root'@'localhost' IDENTIFIED WITH caching_sha2_password BY '123456789';
exit
mysql -u root -p
123456789