To sum up the cause of the previous problem: When I installed snort, the path of. configure -- with-mysqlDIR indicated a problem. My system has installed mysql, so
To sum up the cause of the problem: When I install snort, the path of./configure -- with-mysql = DIR indicates a problem. My system is already installed with mysql, so
Summarize the causes of the problem:
When I install snort, The./configure -- with-mysql = DIR path indicates a problem. My system has installed mysql
So when I reinstall it, I directly./configure -- with-mysql, and uninstall the snort before the reinstall.
Re-configure, make, make install. When you run snort again, you will find that the database is correctly connected.
Database: compiled support for (mysql)
Database: configured to use mysql
Database: user = root
Database: password is set
Database: database name = snort
Database: host = localhost
Database: sensor name = localhost. localdomain: [reading from a file]
Database: sensor id = 2
Database: schema version = 106
Database: using the "log" facility
I was so excited when I saw this, and finally solved a big problem!