I m glad giving a helpfull hand, as have already took so many without giving nothing back!
The XAMPP presents the following problem:
When you have installed the basic MySQL from your reposiroty or your /media dvd when formating
and you try to install ΧΑΜPP you will probably see the message trying to enter MySQL:
[error 2002] - Can't connect to local MySQL server through socket /var/lib/mysql/mysql.sock
The basic MySQL deamon must stop and close permanently forever
service mysqld stop
chkconfig mysqld off
Start your xampp.
Now, the real mysql.sock file which the XAMPP needs to cooperate with its own MySQL server is in the location
/opt/lampp/var/mysql/mysql.sock and not in the location
/var/lib/mysql/mysql.sock where the original MySQL for CentOS keeps
So, you must edit the file /etc/my.cnf and add these lines to the bottom:
This is it!!