On Mar 21, 2015 3:03 PM, "Network Infrastructure" <[email protected]>
wrote:
>
> In ossec manager I config:
>
> # tar -zxvf ossec-hids-*.tar.gz (or gunzip -d; tar -xvf)
> # cd ossec-hids-*
> # cd src; make setdb; cd ..
> # ./install.sh
> # /var/ossec/bin/ossec-control enable database
>
> # /opt/lampp/bin/mysql -u root
>
> mysql> create database ossec;
>
> mysql> grant INSERT,SELECT,UPDATE,CREATE,DELETE,EXECUTE on ossec.* to
demo@'127.0.0.1';
>
> mysql> set password for [email protected]=PASSWORD('xxxxxx');
>
> mysql> flush privileges;
>
> mysql> quit;
>
> <ossec_config>
>        <database_output>
>         <hostname>127.0.0.1</hostname>
>         <username>ossecuser</username>
>         <password>ossecpass</password>
>         <database>ossec</database>
>         <type>mysql</type>
>        </database_output>
> </ossec_config>
> # /var/ossec/bin/ossec-control enable database
> # /var/ossec/bin/ossec-control restart
>

Is mysql listening on 127.0.0.1?

> On Sunday, March 22, 2015 at 12:54:37 AM UTC+7, Eero Volotinen wrote:
>>
>>
>>
>> 2015-03-21 19:18 GMT+02:00 Network Infrastructure <[email protected]>:
>>>
>>> Help me please!
>>>
>>> I installed and configured OSSEC on CentOS 6.6
>>> and also install XAMPP 1.8.1 to sent report to MySQL Server but I got
error as below:
>>>
>>> ossec-dbd(5202): ERROR: Error connecting to database
'xxx.xxx.xxx.xxx'(ossec): ERROR: Can't connect to MySQL server on
'xxx.xxx.xxx.xxx'
>>
>>
>> is authentication configured correctly on ossec and also on mysql-server?
>>
>> --
>> Eero
>
> --
>
> ---
> You received this message because you are subscribed to the Google Groups
"ossec-list" group.
> To unsubscribe from this group and stop receiving emails from it, send an
email to [email protected].
> For more options, visit https://groups.google.com/d/optout.

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"ossec-list" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to