Advertisement
apfel2kuchen

Untitled

May 29th, 2015
258
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.21 KB | None | 0 0
  1. CREATE DATABASE rsyslogdb;
  2. USE rsyslogdb;
  3. CREATE TABLE SystemEvents
  4. {
  5. ID int unsigned not null auto_increment primary key,
  6. CustomerID bigint,
  7. ReceivedAt datetime NULL,
  8. DeviceReportedTime datetime NULL,
  9. Facility smallint NULL,
  10. Priority smallint NULL,
  11. FromHost varchar(60) NULL,
  12. Message text,
  13. NTSeverity int NULL,
  14. Importance int NULL,
  15. EventSource varchar(60),
  16. EventUser varchar(60) NULL,
  17. EventCategory int NULL,
  18. EventID int NULL,
  19. EventBinaryData text NULL,
  20. MaxAvailable int NULL,
  21. CurrUsage int NULL,
  22. MinUsage int NULL,
  23. MaxUsage int NULL,
  24. InfoUnitID int NULL,
  25. SysLogTag varchar(60),
  26. EventLogType varchar(60),
  27. GenericFileName VarChar(60),
  28. SystemID int NULL
  29. };
  30.  
  31. CREATE TABLE SystemEventsProperties
  32. {
  33. ID int unsigned not null auto_increment primary key,
  34. SystemEventID int NULL,
  35. ParamName varchar(255) NULL,
  36. ParamValue text NULL
  37. };
  38.  
  39.  
  40. [root@localhost yum.repos.d]# mysql -u root -p < /home/test/db
  41. Enter password:
  42. ERROR 1064 (42000) at line 3: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '{
  43. ID int unsigned not null auto_increment primary key,
  44. CustomerID bigint,
  45. Receiv' at line 2
  46. [root@localhost yum.repos.d]#
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement