SQL GRANT question
I am following some instructions on the Internet for installing snort, and in one part it says to create the Snort database and Snort user. The code is this:
Code:
mysql> create database snort; Thanks. |
Looking into this matter further, I believe it's supposed to be "GRANT INSERT, SELECT on snort_db_name.* ..."
|
I think this is just a dummy grant to create a user.
Even the Code:
grant INSERT, SELECT on snort to snort@localhost; Code:
grant CREATE,INSERT, SELECT,DELETE,UPDATE on snort to snort@localhost; What it actually does is: 1. create database 2. create user (dummy grant) 3. Set password for the user 4. SEt the real permissions (real grant) when he could just do: 1. create database 2. create user and set permissions(real grant) 3. Set password for the user I may be wrong, I just started using mysql but I think this is it. |
All times are GMT -5. The time now is 11:25 PM. |