Answer the question
In order to leave comments, you need to log in
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
run mysql_secure_installation or
standard setup/change password mysqld_safe --skip-grant-tables &
Most likely there is a default user root without a password. Or with root password
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
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question