Installing MySQL 8 on Ubuntu18.
04
1. First, download the MySQL APT repository configuration file:
wget [Link]
2. Install the MySQL APT Repository Configuration File:
sudo dpkg -i mysql-apt-config_0.8.17-1_all.deb
During the installation, a prompt will appear. Select MySQL Server & Cluster (Currently selected: mysql-8.0)
and then click OK.
3. Add the MySQL GPG Key:
sudo apt-key adv --keyserver [Link] --recv-keys 467B942D3A79BD29
4. Update Package Information:
sudo apt update
5. Install MySQL Server:
sudo apt install mysql-server
6. Secure Your Installation (Optional but recommended):
Run the security script to set up a root password and secure your installation:
sudo mysql_secure_installation
7. Verify the Installation:
You can check the MySQL service status by running:
sudo systemctl status mysql