I had Solaris 10 with MySQL Community Server 5.1.59 and Apache Tomcat 7.0 installed via pkgadd command, MySQL worked perfectly and tomcat work only if I add HTTP port # to IP address 127.0.0.1:8080 and MySQL configured with password for the root user. after that I've add php package and its dependencies from sunfreeware.com unfortunately php didn't work at all (calling php scripts in tomcat directory via browser didn't parsed). then I decided to use XAMPP, everything goes very will except MySQL that is accessed via phpMyAdmin without password (that's good) but it didn't work on terminal ( my favorite way to deal with MySQL
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
and I have to mention that new Apache works alongside the old Tomcat (When enter IP address without 8080).I google it to find out what's the problem, I've been try all of available solutions that I found but no one work for me
1. All stop commends didn't work at all (/opt/xampp/xampp stop, /opt/xampp/xampp stopapache, ...etc).
2. After deleting XAMPP(rm -rf /opt/xampp) Apache Server still work!!!!!
please till me an easy way to delete every thing (except Apache Tomact) and start XAMPP probably