I have
LAMPP and
apache2 both are installed on my ubuntu.
I installed mysql using
Code:
sudo apt-get install mysql-server mysql-common mysql-client
for apache2.
But I don't know how my
lampp's mysql and
apache2's mysql have been overlapped.
If I want to run my apache2's project which are in /var/www directory.
I have to run following process
1) stop lampp first (for starting apache2 otherwise it gives another weserver is runing error), then
2) start apache2, then
3) start lampp again (for running LAMPP's mysql).
service start mysql does not work for me, I have to run LAMPP's mysql to run my apache2's project.
status of mysql should be stopped otherwise LAMPP's mysql is not started and if LAMPP's mysql is not started, it does connect my database.
Even I am not able to connect on command line from
service start mysql, I have to run LAMPP for mysql prompt.
LAMPP is working fine, it does not depend on apache2 and default mysql package.
Any help would be appreciated.