Install MySQL Install MySQL¶ Install the MySQL server and client from the APT repository. sudo apt install mysql-server Check Version¶ Check to make sure the correct version (8.0.x) has been installed. sudo mysql --version mysql Ver 8.0.40-0ubuntu0.22.04.1 for Linux on x86_64 ((Ubuntu))