2

I installed LAMP:

apache2 libapache2-mod-php7.0 php7.0 php7.0-mysql mysql-server

and phpmyadmin.

Unfortunately, I did not put a password in when I was questioned to do so. Now I cannot log into mysql. I think there is a policy now that forbidds root access without password.

That is why i wanted to completely remove all packages and configuration and do a fresh install of LAMP where I will get asked to set the password again.

I used purge and whereis and dpkg -l mysql* | grep ii | awk '{print $2}' to make sure I deinstalled all files (i also did this for apache2) but on re-installing the dialog for the password does not come up.

How do I find and delete all files for the LAMP and phpmyadmin to be able to install everything newly from scratch?

8
  • I now managed to log in via terminal using this post (askubuntu.com/questions/766334/…) but anyway the question is still relevant because phpmyadmin requires (root)-users to have a password which i cannot set.
    – bomben
    Nov 14, 2016 at 11:39
  • You can log in to the mysql server (>5.7) via root linux user only, without password. Have a look at related question for what you can do in your case. Nov 14, 2016 at 12:27
  • Yes, I did this. Anyway, my question still remains relevant, I think. Because one should be able to remove all files concerning a package to be able to install it completely new.
    – bomben
    Nov 14, 2016 at 17:37
  • LAMP is actually a number of individual packages, so each package needs to be removed individually. See this post: How do I remove the LAMP stack so I can start over? askubuntu.com/questions/50101/…
    – Steve R.
    Feb 23, 2017 at 19:31
  • Maybe this will solve your problem Feb 28, 2017 at 17:59

0

You must log in to answer this question.

Browse other questions tagged .