Welcome to Software Development on Codidact!
Will you help us build our independent community of developers helping developers? We're small and trying to grow. We welcome questions about all aspects of software development, from design to code to QA and more. Got questions? Got answers? Got code you'd like someone to review? Please join us.
How to grant privileges to a user on a database specifically (i.e. not globally) in PHPMyAdmin?
In PHPMyAdmin 5.1.1 I have created a user account and a database with the same name and granted all privileges to the user on that database.
I have exported the database to a backup file, deleted the database, recreated the database empty (i.e. created a new empty database with the same name) and then imported the content of the export backup into the new database.
I have found how to grant a user global privileges but not how to grant a user specific privilege's (i.e. privileges on a specific database).
1 answer
Under User accounts > (user) Edit privileges, there is a tab I would define as "somewhat hidden", named "Database" which is different than the default "Global" tab;
There, one could control which database-specific privilege/s a user has.
1 comment thread