A
A
adrash kh2018-10-15 10:47:56
MySQL
adrash kh, 2018-10-15 10:47:56

During the installation of mysql I am not asked for a password. What should I do?

Good afternoon.
I reinstalled the computer, now I'm installing php, mysql, etc... But during the mysql installation, I enter the command sudo apt-get install mysql-server It installs everything, but does not ask me to enter my password for mysql and after that I can't go to mysql. What should I do?

Answer the question

In order to leave comments, you need to log in

4 answer(s)
N
Niko_F, 2018-10-15
@Niko_F

run mysql_secure_installation or
standard setup/change password mysqld_safe --skip-grant-tables &

I
Ivan Shumov, 2018-10-15
@inoise

Most likely there is a default user root without a password. Or with root password

D
dmpopof, 2018-10-16
@dmpopof

The MySQL installation log will contain your password. Warm up the file /var/log/mysql/mysqld.log, /var/log/messages or something close by the word pass

R
rusabk, 2022-02-16
@rusabk

Create a new user, that's it :) Here, keep the article, repeat the section "Creating an administrator user" - https://blog.ruslanabk.ru/posts/mysql.html#%D1%81%...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question