Creating a user and granting privileges to the user

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.

Submit an answer

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!

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

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

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.