A
A
Alexey Konovalov2019-09-04 15:45:12
MySQL
Alexey Konovalov, 2019-09-04 15:45:12

How to give a user privileges to one database?

Hello! When I log into PhpMyAdmin, I see databases too. And some of them are systemic. How to make sure that a certain user has access only to a certain database, the way it is done on hosting?
5d6fb1ec864e8751082426.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anton, 2019-09-04
@Alk90

Elementary, give the user rights only to a specific database

GRANT ALL PRIVILEGES ON databaseName.* To 'user'@'hostname' IDENTIFIED BY 'password';

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question