how to stop mysql daemon temporarily

Asked by Anmol Prakash Gautam

I have recently installed LAMPP on ubuntu 9.04
However when i start it , it says following:

anmol@anmol-laptop:~$sudo /opt/lampp/lampp start
[sudo] password for anmol:
Starting XAMPP for Linux 1.7.1...
XAMPP: Starting Apache with SSL (and PHP5)...
XAMPP: Another MySQL daemon is already running.
XAMPP: Starting ProFTPD...
XAMPP for Linux started.

Well, I have previously installed MySQL on my system . Therefore it says "Another MySQL daemon is already running".
Now how can I stop the previous daemon from running in order to start it from LAMPP 'or' use that MySQL for my LAMPP applications.
Plz help

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu mysql-dfsg-5.1 Edit question
Assignee:
No assignee Edit question
Solved by:
Vitaliy Kulikov
Solved:
Last query:
Last reply:
Revision history for this message
Best Vitaliy Kulikov (slonua) said :
#1

type in terminal:

$ sudo service mysql stop

if not, try $ sudo service my<use tab complition =)> stop

Revision history for this message
Vitaliy Kulikov (slonua) said :
#2

or u can try
$ killall mysql<use tab complition =)>

Revision history for this message
Ryan Dwyer (ryandwyer) said :
#3

Looks like you already have regular MySQL running, which is listening on the port and stopping LAMP's MySQL from running as well. You can stop the existing MySQL from running by typing: sudo /etc/init.d/mysql stop

The problem really comes from the fact you're using LAMP. LAMP doesn't register that it's installed anything, so others apps that want to use MySQL will go ahead and install it, creating a conflict.

Revision history for this message
Anmol Prakash Gautam (anmolprakash-gautam) said :
#4

thank you for replying so quickly...
It helped.. :)