That command will for sure remove your mysql daemon installed through apt-get do you have any other source installations ?
on start up
what does
ps aux | grep mysql show ?
Main Topics
Browse All TopicsI have XAMPP installed and wanted to install a MySQL client, I was surprised to find it is not part of XAMPP.
Accidentally I also installed mysql-server, so the command I used was
sudo apt-get install mysql-client mysql-server
I really want to do
sudo apt-get install mysql-client
Now I have a problem removing mysql-server. I need to remove because it is conflicting with XAMPP for example
laptop:~$ sudo /opt/lampp/lampp start
Starting XAMPP for Linux 1.7...
XAMPP: Starting Apache with SSL (and PHP5)...
XAMPP: Another MySQL daemon is already running.
XAMPP: Starting ProFTPD...
XAMPP for Linux started.
I tried sudo apt-get remove mysql-server but as it turns out that doesn't remove the MySQL daemon. I then reinstalled sudo apt-get install mysql-server and issued the following command
sudo apt-get remove --purge mysql-server
After that command I was able to succesfully start XAMPP. The message that another daemon was gone and XAMPP, PHPMyAdmin etc was working.
The problem now is that when I restart Ubuntu the daemon is up again and XAMPP fails to start again. So as it turns out sudo apt-get remove --purge mysql-server is also not enough to remove mysql-server.
Is there a way to remove this Daemon short of reinstalling Ubuntu?
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
It seems that your problem is not with the MySQL installation at all. It looks like something is starting MYSQL before your XAMP attempts to start it. It is to me a priority issue. since MYSQL gets started before XAMP actually starts it. You might like to modify your your XAMP startup located in /etc/init.d.
You can either add /etc/init.d/mysql stop in the beginning of the script or you might like to prevent to start mysql with your system startup using this command:
sudo update-rc.d mysql remove
Cheers,
K.
Yup I guess you've done what I've pointed you to. But instead of stopping the service properly using init.d scripts you've preferred to circumvent it :) IT is ok if it works for you but what will happen when the time pass and you forget this lil trick you've done and when you ant to see eaht services are active you'll want to keep mysql active :) or if you install the new version of xampp and if it overwrites your script youll be where you have left today. This is why I'm suggesting you to do it properly :)
I wanted to mark it for at least future researchers of the same topic.
Take Care,
K.
Business Accounts
Answer for Membership
by: shakoush2001Posted on 2009-08-11 at 00:07:41ID: 25066707
apt-get remove mysql-server