![]() |
VOOZH | about |
Thanks for learning with the DigitalOcean Community. Check out our offerings for compute, storage, networking, and managed databases.
Former Director of Community at DigitalOcean. Expert in cloud topics including LAMP Stack, CentOS, Ubuntu, MySQL, SSL certificates, and more.
I help Businesses scale with AI x SEO x (authentic) Content that revives traffic and keeps leads flowing | 3,000,000+ Average monthly readers on Medium | Sr Technical Writer(Team Lead) @ DigitalOcean | Ex-Cloud Consultant @ AMEX | Ex-Site Reliability Engineer(DevOps)@Nutanix
Building future-ready infrastructure with Linux, Cloud, and DevOps. Full Stack Developer & System Administrator. Technical Writer @ DigitalOcean | GitHub Contributor | Passionate about Docker, PostgreSQL, and Open Source | Exploring NLP & AI-TensorFlow | Nailed over 50+ deployments across production environments.
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!
You can grant multiple privileges in one command by separating them with commas: eg: โGRANT UPDATE, SELECT ON [database name].[table name] TO โ[username]โ@โlocalhostโ;โ
This code from above has a backtick before localhost. It should be a single quote.
GRANT ALL PRIVILEGES ON * . * TO โnewuserโ@โlocalhostโ;
Hi, nice intro. It was useful. I noticed that for the REVOKE command, one has to use FROM, not TO. Also, might be helpful for new users to know that they can use โ%โ as a wildcard instead of โlocalhostโ.
This worked for me. However to be able to use MySql Workbench it seems it wants another version of the user. I needed to do the following (which has taken me a few hours of playing around with to get right) mysql> select user,host from mysql.user; <โto see users mysql> GRANT ALL ON . to user@โ%โ IDENTIFIED BY โuser-pwdโ; mysql> FLUSH PRIVILEGES; mysql> select user,host from mysql.user; mysql>quit Also need to comment out or change the bind-address to <droplet address>. This does reduce security. sudo nano /etc/mysql/my.cnf ;bind-address=127.0.0.1 exit and $service mysql start $service mysql stop
then get access on <droplet-ip> from my Sql workbench using user/user-pwd on std port for adminstering, creating and querying.
Thereโs no link at the start of this tutorial to the first tutorial. Can you please add that link?
how to give permission to only select views in requried user pls send me urgent
@ravuri.srinivasarao7: Please read the second part of the article: โHow To Grant Different User Permissionsโ
Is there a way to just give permission to create a new table within the specified database, but not allow the creation of a new database?
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.