I typed sudo apt-get install mysql-server, pressed “y” and it installed. Now when it asks me for the password when typing the mysql_secure_installation command what should I do?
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Click below to sign up and get $100 of credit to try our products over 60 days!
Hello @UbuntuNoob123
as @KDSys said your probably best removing and starting again,
However, for people wanting to reset the root password, you can follow the tutorial:
How To Reset Your MySQL or MariaDB Root Password
Regards Simon Bennet SnapShooter DigitalOcean Backups
Hi @UbuntuNoob123,
Most probably it was displayed somewhere when you installed MySQL. What I’ll recommend you if it’s still a fresh installation is to remove the current MySQL and follow this DigitalOcean tutorial - https://www.digitalocean.com/community/tutorials/how-to-install-the-latest-mysql-on-ubuntu-18-04
It’s for an Ubuntu OS however looking at your Nickname I would assume that’s what you are using.
The tutorial shows you everything necessary to install and configure it.
Regards, KDSys