Rate this post

Last Updated on January 12, 2023 by Vikash Ekka

How to install Mysql 8.0.29 on Ubuntu 22.04 LTS
How to install Mysql 8.0.29 on Ubuntu 22.04 LTS

Hey reader, In this tutorial we are going to install mysql 8.0.29, which is the latest version of mysql community. 

MySQL is an open-source database management system and free to use. It is commonly installed as part of the most popular LAMP (Linux, Apache, MySQL, PHP/Python/Perl) stack and LEMP (Linux, Nginx, MySQL, PHP) stack.

It uses a relational database and SQL (Structured Query Language) to manage its data. It is the most common software stack that comes up with dynamic websites and web applications.


* Need root user access.

* Internet

* MySQL 8.0 packages.

* Ubuntu 22.04/20.04/18.04 LTS 

Also read 


Install Mysql 8.0.29 on Ubuntu 22.04 LTS Jammy Jellyfish.

Step1. First we need to add this below MySQL repository to our Ubuntu 22.04 system’s package in sources list; start by downloading the repository package using the wget tool from the command line.

vikash@vetechno:~$   wget -c https://repo.mysql.com//mysql-apt-config_0.8.13-1_all.deb  

Step2. Now we need install the MySQL 8.0 repository package using the following dpkg command.

vikash@vetechno:~$   sudo dpkg -i mysql-apt-config_0.8.13-1_all.deb 


vikash@vetechno:~$   dpkg -i mysql-apt-config_0.8.13-1_all.deb
(Reading database ... 145783 files and directories currently installed.)
Preparing to unpack mysql-apt-config_0.8.13-1_all.deb ...
Unpacking mysql-apt-config (0.8.13-1) over (0.8.13-1) ...
Setting up mysql-apt-config (0.8.13-1) ...
Warning: apt-key should not be used in scripts (called from postinst maintainerscript of the package mysql-apt-config)

Step3. Update the repository

vikash@vetechno:~$   sudo apt update 

Step4. Import the missing GPG keys for the repository

vikash@vetechno:~$   sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 467B942D3A79BD29


vikash@vetechno:~$   sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 467B942D3A79BD29
Executing: /tmp/apt-key-gpghome.221WltaxX3/gpg.1.sh --keyserver keyserver.ubuntu.com --recv-keys 467B942D3A79BD29
gpg: key 467B942D3A79BD29: public key "MySQL Release Engineering <[email protected]>" imported
gpg: Total number processed: 1
gpg:               imported: 1 

Step5. Update the repository again

vikash@vetechno:~$   sudo apt update 

Step6. Install packages for the MySQL 8.0.29 community server, client and the database common files.

vikash@vetechno:~$   sudo apt install mysql-server


Done!! You have successfully installed MySql 8.0.29 on Ubuntu 22.04 LTS. This method will also work on Ubuntu 18.04 LTS and Ubuntu 20.04 LTS. If you have any doubt let me know in this comment box. 

Also read 


You may Also like

By Vikash Ekka

Hi All, My name is Vikash Ekka from India. I’m the founder and tech editor of https://www.vetechno.in. I have completed my Graduation in BCA. I love to write technical articles like Windows, Linux & MAC Tutorials, Tips, Tricks, How To fix, Tutorials About Ethical Hacking & Cyber Security Guide, and Software Review. Currently, I have been working as an IT professional since 2018.

Leave a Reply

Your email address will not be published. Required fields are marked *