Header Ads Widget

Ticker

6/recent/ticker-posts

How to install Mysql 8.0.29 on Ubuntu 22.04 LTS | vetechno

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.

Prerequisites:-

* 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 

 OUTPUT

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)
OK

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

OUTPUT

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 <mysql-build@oss.oracle.com>" 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

Conclusion

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

Post a Comment

0 Comments