How to solve “XAMPP: Couldn’t start MySQL!”
Linux platforms are growing on personal computers at a really fast rate. For all those developers who fantasize web development, a personal server is inevitable. Long ago in the ages of kings, you would have required to compile apache and MySql binaries for a windows based desktop/laptop and then make your installations co-exist. Then came the WAMP which really made the whole process of setting up Apache, MySQL and PHP for Windows really easy.
To help you with setting up the server, database and php on Linux comes the XAMPP. This experience in this post is based on a Mandriva 2007 spring installation of linux. XAMPP is really easy to setup following the instructions on their home page.
Some of you might wonder why you get the error “XAMPP: Couldn’t start MySQL!” even though you followed all the instructions properly.
The following was the second step in the installation and here is where the problem could have occurred. The problematic point is marked in red.
After downloading simply type in the following commands:
1. Go to a Linux shell and login as the system administrator root:
su
2. Extract the downloaded archive file to /opt:
tar xvfz xampp-linux-1.7.2.tar.gz -C /opt
Warning: Please use only this command to install XAMPP. DON’T use any Microsoft Windows tools to extract the archive, it won’t work. {IN LINUX TOO USE THE COMMAND LINE INTERFACE AND NOT THE EXTRACTOR FROM KDE OR OTHER DESKTOP ENVIRONMENT}
That’s all. XAMPP is now installed below the /opt/lampp directory.
Take home message is to use the command interface for extracting the package and not using the extractor in the desktop environment to extract the package. I hope that solves your problem, if it did please leave a comment and confirm it so that others can follow the same with no skepticism. Thanks folks !!



