Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

In order to create a database and a table for the JDBC Appender to log to, use the SQL commands below.

Code Block
sql TitleCreateDB.sql
CREATE DATABASE IF NOT EXISTS db_name
where db_name is the name of the database you would like to create.
Code Block
sql
sql
CREATE TABLE `table_name` (
  `Id` int(11) NOT NULL auto_increment,
  `Logger` varchar(64) default NULL,
  `Priority` varchar(10) default NULL,
  `Message` varchar(250) default NULL,
  `Date` varchar(40) default NULL,
  PRIMARY KEY  (`Id`)
) ENGINE=MyISAM AUTO_INCREMENT=1005 DEFAULT CHARSET=utf8

...