By hypertextsol
I have created several user & virtual server on virtualmin/webmin. Now the problem is when I try to assign a particular user to a particular database, I am able to do … but that user is able to access all the database.
user creation through >edit user webmin>server>mysql>user permission ( i gave Select | Insert | Update | Delete | Create | File | Index permission) to a particular user webmin>server>mysql>Database Permissions and select this particular to a particular database.
now through my php application I am able to give the credential of this user and access this database as well as other database…
But I want this particular user to access only the assigned database…
Any help is appreciated. Thanks in advacne
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!
For the benefit of others that may find themselves in the same predicament, how were you able to solve it?
webmin>server>mysql>user permission should be set to none. Instead go to database permissions and set the user permissions there. That way the permissions are just for that database and not global. Logical really, just not obvious.
However, I would recommend that a database user is a standard user of the virtual website (which means they also get email, even if you don’t use it). Only those users get recreated in a virtualmin backup and restore. Plus you set the database password in the virtual server, edit database, password. Then that too gets recreated in backup/restore.
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.