Hi, I was installing mySQL on the droplet console and when I wrote this command: ‘sudo /usr/bin/mysql_secure_installation’ the console asks me to enter my current password for root. Then I type the password of the credentials email when I created the droplet, but a error 1045 (28000) appears and I can’t have anything more in the console.
What can I do? Thanks in advance!
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!
The root password for for MySQL is not the same as the root password for the server itself. It sounds like you are probably using one of the one-click apps if there is a password set for MySQL. Which droplet are you using?
With the LAMP and LEMP droplets when you first log in, the MySQL root password is displayed in the MOTD (aka message of the day). That is the text that is first shown in the console.
With the Wordpress droplet, you can find the MySQL root password by running: <pre> cat /root/.my.cnf </pre>
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.