Go to your tmp directory:
cd /tmp
Download the MySQL configuration package:
curl -OL https://dev.mysql.com/get/mysql-apt-config_0.8.13-1_all.deb
Install the package:
dpkg -i mysql-apt-config_0.8.10-1_all.deb
Update your system:
sudo apt update
Install MySQL Server and Client:
sudo apt install mysql-server
Confirm that MySQL 8.0 is running:
mysql -V
Secure your installation (if installed in production):
mysql_secure_installation
- Check your MySQL status with
systemctl status mysql
- Enable MySQL on bootup with
systemctl enable mysql