slech

Silver Member | Редактировать | Профиль | Сообщение | Цитировать | Сообщить модератору Всем привет. ВОт пытаюсь завести SnortCenter 2.x куча ошибок при подключении. Создал базу snortcenter дал права root на всё config.php поправил пытаюсь подключиться Creating Database Tables ... Unable to CREATE table 'decode': Database ERROR:Table 'decode' already exists Unable to CREATE table 'schema': Database ERROR:You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'schema ( vseq int(10) unsigned NOT NULL default '0', ' at line 1 Unable to CREATE table 'Rules_template': Database ERROR:Table 'rules_template' already exists Обнаружил пока вот что: правда даже незнаю насколько верно 1. после строки 34 надо вставить $tblDecode_present = $db->acidTableExists("decode"); - что бы скрипт проверял существование таблицы decode и не пытался её создать выдавая ошибку. 2. в 47 строке вместо $tblUsers_present = $db->acidTableExists("rules_template"); надо - $tblRules_template_present = $db->acidTableExists("rules_template"); - что бы скрипт проверял существование таблицы rules_template и не пытался её создать выдавая ошибку. 3. в 295-296 строке вместо $sql = "CREATE TABLE schema ( vseq int(10) unsigned NOT NULL default '0', надо - $sql = "CREATE TABLE `schema` ( vseq int(10) unsigned NOT NULL default 0, 4. в 305 строке вместо $sql = "INSERT INTO schema VALUES (5, '2002-10-11 00:00:00')"; надо - $sql = "INSERT INTO `schema` VALUES (5, '2002-10-11 00:00:00')"; | Всего записей: 4893 | Зарегистр. 10-11-2004 | Отправлено: 15:47 13-06-2007 | Исправлено: slech, 18:40 14-06-2007 |
|