MySQL Enterprise packages are not available in Ubuntu’s default repositories. You need to download them directly from the MySQL website. For this guide we will download the package via wget script instead of direct download.
Step 1: Download the wget script
- Visit the Oracle Software Delivery Cloud page
- Log in with your Oracle account credentials
- Get the wget downloader script (refer screenshots below)
TO BE CONTINUE
Step 2: Running the wget script
Once the wget script is downloaded, use the following commands to use it:
-
On the server, create a new directory
mkdir mysql-enterprise && cd $_
-
Create a new file & make it executable
touch downloader.sh && chmod +x $_
-
Paste the wget script content retrieved from the website earlier
nano downloader.sh
-
Run the script, you will be prompted with sign in credentials
./downloader.sh
The script will download .zip chunk files, make sure to check the wget log for any error
Step 3: Installing the downloaded package
-
Unzip all the .zip chunk files
unzip -o *.zip
-
Install the .deb file
sudo dpkg -i *.deb
Here, your installation will be interrupted due to an unmet dependencies error
-
Fix broken dependencies
sudo apt install -f
This will scans the system for packages with missing or broken dependencies
Conclusion
Verify the mysql version, you should see “MySQL Enterprise Server - Commercial” in the output
mysql --version