|
发表于 2005-10-28 16:07:08
|
显示全部楼层
Post by zaotingting
.建立snort数据库
# mysql
mysql> SET PASSWORD FOR root@localhost=PASSWORD('test'); //这里我用test,原有密码的就不用改了.
mysql> create database snort;
mysql> grant INSERT,SELECT on root.* to snort@localhost;
mysql> exit
# mysql -u root -p < /home/snort/snort-2.3.3/schemas/create_mysql snort //为snort建立数据表
我按你这个步骤装了,可mysql里的snort还是空的,请问为什么?因为我是在windows下安装snort 的。
注意这一句
mysql> grant INSERT,SELECT on root.* to snort@localhost;
改成
mysql> grant INSERT,SELECT on snort.* to snort@localhost;
就可以了 |
|