I have recently ran into a problem, I was trying to change root password, which I forgot, but it seems that I somehow managed to completely break the mysql service itself and due to the fact many of my other services had problems connecting to the server even prior to my stupidity striking, I decided that it would be the best to just do a full reisntall. To remove all the components I used apt-get purge mysql*
, however when I executed the command, the command mysql seemed to be uneffected. After a few attempts and a reboot, when I finally seemed to have purged mysql, when I attempted to install, it installed, but I wasnt shown any configuration, when using the mysql command it didnt even ask me for a user, when I tried to change the root password it said ok, but the password didnt work. Im very confused and frustrated, this hasnt happened for the first time, reinstalling mysql is literally my number one nightmare. Please help me, Im absolutely clueless about what should I do.
EDIT: I actually got to set the password, but... It lets me to log in with ANY password, moreover, no remote connection actually works even after using mysql_secure_installation. I dont know what the actual f is going on, but my mysql installation is completely broken