Go to /opt/lampp/etc/ and open my.cnf file.
Find skip-networking and comment it out: #skip-networking
You should be able to connect to your xampp MySQL server on localhost:3306
Go to /opt/lampp/etc/ and open my.cnf file.
Find skip-networking and comment it out: #skip-networking
You should be able to connect to your xampp MySQL server on localhost:3306