MySQL

Install

My enviroment:

  • Architecture: x86_64

  • OS: Ubuntu 22.04 LTS

Update packages then install mysql:

sudo apt update
sudo apt upgrade
sudo apt install mysql-server

Test if it works and check version:

sudo systemctl enable mysql
sudo systemctl start mysql
sudo systemctl status mysql
mysql -V

Security

circle-exclamation

Enhance your database security by running mysql_secure_installation script:

choose the options:

Then you can login to mysql as root with password:

Last updated