Skip to content

Database ERROR:Database connection failed

Featured Replies

hey,

 thanks for the guide.

i closely completed my installation,except the last step:

Starting the Windows Intrusion Detection Systems (WinIDS) Security Console

when i  opened a web-browser and type 'http://winids' ", it shows DATABASE ERROR as bellow:

Error (p)connecting to DB : snort@winids

Check the DB connection variables in base_conf.php 
               = $alert_dbname   : MySQL database name where the alerts are stored 
               = $alert_host     : host where the database is stored
               = $alert_port     : port where the database is stored
               = $alert_user     : username into the database
               = $alert_password : password for the username
              

Database ERROR:Database connection failed
 

 

May somebody pls kindly give some support? thank u!

 

 

  • Author

BTW, i had been changed as follow under the guide:

$alert_dbname   = 'snort';
$alert_host     = 'winids';
$alert_port     = '';
$alert_user     = 'base';
$alert_password = 'an@l1st';
  • Author

after reboot, i got this error as attach

error1.png

  • Author

I had encounted  none of error during the whole installation ,except  FIVE WARNING in the step on " Creating the Windows Intrusion Detection System Database Tables  " ,after i typed the command:  \i d:/temp/snort_user.sql; "

  was that the ROOT REASON?  If so, how to solve? it not,how can i do?

 sorry for the CHINESE charactor, i had tried my best to translated......: SHY :

    you can receive my best wishes from CHINA! 

error2.png

On ‎3‎/‎25‎/‎2016 at 6:20 AM, cabsme said:

error2.png

The above is normal. If you are getting a connection error than it's most likely related to user authentication, or possibly the database is not running?

Create an account or sign in to comment

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.