News:

MyKidsDiary.in :: Capture your kids magical moment and create your Online Private Diary for your kids

Main Menu

MySQL Tutorial » Privilege » Local User

Started by VelMurugan, Apr 21, 2009, 12:29 PM

Previous topic - Next topic

VelMurugan

Give ALL PRIVILEGES on a database to a local user who has to use a password to access the database

QuoteGRANT ALL PRIVILEGES
ON myDatabase.*
TO newuser@localhost
IDENTIFIED BY 'newpassword';

To restrict the user to manipulating data (rather than table or database structures)

QuoteGRANT SELECT,INSERT,UPDATE,DELETE
ON myDatabase.*
TO newuser@localhost
IDENTIFIED BY 'newpassword';

Source : java2s