0

For some reason, when I try to install MariaDB or MySQL on Ubuntu 16 desktop using package management at a terminal, there is no part of the installation that asks for a password. It just finishes with indications that all was successful. Then I am unable to get into the database because I have no idea what the password is. It is very strange. If I did a fresh install and selected a LAMP stack it would ask me for the password when installing mysql. My solution seems to be to add MariaDB using something like Bitnami or Docker.

Vadim Kotov
  • 8,084
  • 8
  • 48
  • 62
Bruce Whealton
  • 1,051
  • 2
  • 14
  • 25
  • 2
    Possible duplicate of [Default password of mysql in ubuntu server 16.04](https://stackoverflow.com/questions/42421585/default-password-of-mysql-in-ubuntu-server-16-04) – Ken White Jun 28 '17 at 01:02

1 Answers1

0

Try this: Default password of mysql in ubuntu server 16.04

Basically, the problem is that, I guess, mysql-server creates folders in /var/lib that cannot be 'purged' using apt-get. Removing those folders and reinstalling mysql-server solved my problem. Just don't forget to change the ownership of /var/lib/mysql* folders to your username. I hope it helps

Leo Skhrnkv
  • 1,513
  • 16
  • 27