MySQL Tutorial/Privilege/Local User — различия между версиями
Admin (обсуждение | вклад) м (1 версия) |
|
(нет различий)
|
Версия 13:44, 26 мая 2010
Give ALL PRIVILEGES on a database to a local user who has to use a password to access the database
GRANT ALL PRIVILEGES
ON myDatabase.*
TO newuser@localhost
IDENTIFIED BY "newpassword";
To restrict the user to manipulating data (rather than table or database structures)
GRANT SELECT,INSERT,UPDATE,DELETE
ON myDatabase.*
TO newuser@localhost
IDENTIFIED BY "newpassword";