I installed mysql-server on Debian. And also installed lampp on Debian. But in order to run lampp and properly working of phpmyadmin I have to stop my mysql-server running on Debian. This creates two different mysql servers. One belonging to phpmyadmin and one belonging to mysql running locally. Is there any way, so that both phpmyadmin and mysql-server run on same port?
You cant run both mysql servers on same port. The best way is to remove Both MySql and Lamp stack then reinstalling it again.
1.)remove mysql and lamp stack:-
sudo apt-get remove --purge mysql-server.* apache2* php* phpmyadmin*
sudo apt-get auto-remove
2.)install lamp stack
sudo apt-get update
sudo apt-get install
sudo apt-get install apache2
sudo apt-get install mysql-server
sudo apt-get install php5 php-pear php5-mysql
sudo service apache2 restart
sudo apt-get install phpmyadmin
then you are ready to code!