When I changed my development machine to a Mac, it created case sensitivity problems with the database on my XAMPP server. I was attempting a solution offered here: MySQL case sensitivity table name on MacOS with case insensitive file system to solve this, which to summarise is to create a case-senstive volume on the disk, move the mysql directory to this volume and create a symlink to it. As instructed I made a backup of the mysql directory. I got this message when I tried to access the database with PhpMyAdmin:
mysqli::real_connect(): (HY000/2002): No such file or directory
I removed the symlink, restored the mysql directory and then found the MySQL server would not start.