Fix phpmyadmin login problem in Kali Linux
In Kali Linux, If you want to run LAMP server, you'll get login problem in http://localhost/phpmyadmin . When you install phpmyamin it basically setup without password, but MySQL won't let you login without Password.
Lets see how to get rid off it.
Open terminal shell and type the following command to start mysql & apache2:
service apache2 start && mysql start
Now type the following command to enter into mysql prompt:
mysql -h localhost -u root -p
You'll ask to enter password. So type your root password that is your mysql current password.
Now type the following command to change mysql password:
mysql > set password for root@localhost = password('abc123');
Now press CTRL+C to exit the mysql prompt.
Type following command to restart mysql & apache2
service apache2 restart && mysql restart
Thats all. Now goto http://localhost/phpmyadmin and login with username: root and password: abc123
Enjoy! :-)
Comments
Post a Comment