PHPMyAdmin connecting to MySQL server installed on WSL

I have been using XAMPP while working on a LAMP stack project and I assume it installs MySQL server on Windows. I recently installed the MySQL server in WSL also for another project because it had to be done in a Linux environment. Now, when I open PHPMyAdmin for working with the LAMP stack project it shows the content of WSL’s MySQL server.

The project application however is able to connect to the correct MySQL server so I guess something is wrong with the PHPMyAdmin configuration. How to fix this?

Source: PHPMYADMIN

LEAVE A COMMENT