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?
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
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
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
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.