how to install mysql on kali linux
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
Select <OK> and press <Enter> key to confirm version installation.
sudo apt update
sudo apt install mysql-community-server
Set root password for your MySQL database server. and confirm it
Select the default authentication plugin.
When asked for root password, provide the password and confirm it to set.
sudo systemctl enable --now mysql
You can test if the database server is working fine by creating a test database:
sudo mysql -u root -p