By geoffAU
Using the root MySQL password from /root/.digitalocean_password I am not able to log in using root. Using DBeaver, ssh connection and the tunnel connect is working correctly. I get the error “Access denied for user ‘root’@‘localhost’”
Is there something else I need to 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 there @geoffAU,
What is the exact command that you are using? Note that you need to specify the -p flag so that you could get prompted for a password:
- mysql -u root -p
Another thing that you could do is add your MySQL password to your ~/.my.cnf file so that you don’t have to enter the password each time as described here.
To do so follow these steps here:
- touch ~/.my.cnf
- chmod 600 ~/.my.cnf
- nano ~/.my.cnf
[client]
user=root
password=YOUR_MYSQL_PASSWORD
Then you will be able to login to MySQL by just running mysql.
Regards, Bobby
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.