Report this

What is the reason for this report?

Creating a user and granting privileges to the user

Posted on December 27, 2019

Hi All,

This is how the use case goes.

I have to create a new database, a new user and grant privileges to the newly created user for the db which i just created.

The problem is that i am not able to grant the privileges as it says access denied to user.

My first problem:- How do i grant a root access to a user which i created from the dashboard.

If not root user:- How do i get the root credentials to make a new user.



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!

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.

This is not possible with the Managed databases, if they allow you to have root access to the managed cluster then the cluster would no longer be managed as a user can make all kinds of changes and break the cluster.

You can do this from any database tool or command line tool. How To Create a New User and Grant Permissions in MySQL

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.