I'm running Windows 11 and tried to install XAMPP on this machine. It installed Apache correctly, but when going to mySQL this appears:
I tried everything I found online to fix this problem in order to install WordPress locally. Then I "fixed" the problem following this tutorial Fixing connection to mySQL
After this, at least PHPmyAdmin opened. However, when installing Wordpress, it did not recognise the database (I created the database and made sure the password, the username and the name of the database were correct, together with the privileges). I spent countless hours trying each and every tutorial I found on the internet to solve this. In the end I resorted to installing XAMPP on a Windows 10 machine. Finally, everything worked out of the box (on Windows 10) without following any tutorials.
Any ideas of why this happened?