Try 127.0.0.1 instead of localhost. Mysql does silly things with localhost. On Oct 20, 2011 11:55 AM, "Kat" <[email protected]> wrote:
> it gets weirder - it connects, drops, connects, gens an error, then > does it again > > I have found some of these around the net. Others have reported it, > but have not found definitive "fixes" - anyone else seeing this? > > 2011/10/20 10:46:58 ossec-dbd: Connected to database 'ossec' at > 'localhost'. > 2011/10/20 10:46:59 ossec-dbd: INFO: Started (pid: 10527). > 2011/10/20 10:47:00 ossec-dbd(5210): INFO: Attempting to reconnect to > database. > 2011/10/20 10:47:00 ossec-dbd(5202): ERROR: Error connecting to > database 'localhost'(ossec): ERROR: Unknown MySQL server host > 'localhost' (0). > > > > On Oct 20, 9:36 am, Kat <[email protected]> wrote: > > Hmm, if you can do > > > > mysql -u ossecuser -p > > and login to mysql > > > > then why can't ossec connect with the same info? > > ossec-dbd(5202): ERROR: Error connecting to database > > > > ??
