K
K
Karina2017-03-07 11:54:19
linux
Karina, 2017-03-07 11:54:19

How to install mysql on ubuntu 16 (MySQL system database not found error)?

I do
sudo apt install mysql-server mysql-client
and the error
MySQL system database not found
journalctl -xe
gives

MySQL system database not found. Please run mysql_install_db tool.

But neither
mysql_install_db
led to
mysqld --initialize-insecure --user=mysql
anything
mysqld --initialize
(they write that --initialize specified but the data directory has files in it. Aborting)
Everything is created in /var/lib. In the base_dir config, the directory is normal. There is a database, but for some reason mysql does not see it.
Ten times I demolished everything and reinstalled it according to this manual askubuntu.com/questions/766038/error-installing-my...
but nothing happened.
Thanks to all.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
B
bychok300, 2017-03-08
@iKapex

mb ubunt got crooked? I once set 32 ​​bits to 64 bits and was stunned to say the least when I guessed what was the matter

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question