What is PHPMyAdmin?

PHPMyAdmin is a free software tool written in PHP, intended to handle the administration of MySQL over the Web interface. phpMyAdmin supports a wide range of operations on MySQL, MariaDB, and Drizzle. Frequently used operations (managing databases, tables, columns, relations, indexes, users, permissions, etc) can be performed via the user interface, while you still have the ability to directly execute any SQL statement.

Install Php:

sudo apt-get install php5 libapache2-mod-php5 php5-mcrypt

The next thing to do is to reset the mysql password. Mysql in Kali Linux and Debian derivatives come with a password. We have to reset this password and set our own password. Use the following commands:

su -
sudo /etc/init.d/mysql stop
mysqld_safe --skip-grant-tables

Open another Terminal in a new Window and type the following commands
NOTE: Remember to replace “new-password” with the password that you would like to use PHPMyAdmin an MySQL root login.
Then type: