How to install MySQL 8.0 on Kali Linux

How to install MySQL 8 on Kali Linux

In this article, we will see how to install MySQL 8 on Kali Linux.

We’ll use the available MySQL APT repository to install MySQL 8.0 on Kali Linux. Ensure this repository is added to our system by running the commands below.

sudo apt update sudo apt install -y wget wget https://dev.mysql.com/get/mysql-apt-config_0.8.15-1_all.deb sudo dpkg -i mysql-apt-config_0.8.15-1_all.deb

As Kali Linux is not officially supported version, choose the Ubuntu Bionic release.

How to install MySQL 8 on Kali Linux

Install MySQL 8 on Kali Linux:

sudo apt update sudo apt install mysql-community-server

1. Enter the password for root user.

2. Re-enter the password for root user.

3. Select the default authentication plugin.

4. Now enable mysql

sudo systemctl enable mysql

5. Check the MySQL Server status

sudo systemctl status mysql

6. If it is stopped, then start by using below command.

sudo systemctl start mysql

7. Connect to MySQL Server:

mysql -u root -p

8. Lets verify the list of databases.

So, in this article we have seen how to install MySQL 8 on Kali Linux step by step.