Jan Dittberner
dc0da570ab
git-svn-id: file:///home/www/usr01/svn/gnuviechadmin/gnuviech.info/gnuviechadmin/trunk@85 a67ec6bc-e5d5-0310-a910-815c51eb3124
17 lines
526 B
Text
17 lines
526 B
Text
To use mysql as logging database, please perform the following steps:
|
|
|
|
1. Create a database and table:
|
|
|
|
"mysql -u root -p < mysql.sql"
|
|
|
|
This will create a new database "syslog" and a table "logs"
|
|
|
|
2. Grant access to the log table to one or more users:
|
|
|
|
"mysql -u root -p"
|
|
"use syslog;"
|
|
"grant insert,select,update,delete on syslog.logs to log4py@localhost;"
|
|
|
|
3. If log4py@localhost is a new user, don't forget to set a password:
|
|
|
|
"mysqladmin -u log4py -p password mysecretpwd"
|