Jump to content

Проблема при установке

Featured Replies

Posted
comment_118894

Здравствуйте. У меня появилась проблема при установке IPBoard на мой локальный сервер. Вылазит вот такая ошибка:

mySQL query error: CREATE TABLE backup_vars (
  backup_var_key    VARCHAR(255) NOT NULL DEFAULT '',
  backup_var_value  TEXT,
  PRIMARY KEY (backup_var_key)
) ENGINE=MyISAM;

SQL error: Specified key was too long; max key length is 1000 bytes
SQL error code: 1071
Date: Friday 30th December 2016 03:29:13 PM


 ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
 Date: Fri, 30 Dec 2016 15:29:13 +0000
 Error: 1071 - Specified key was too long; max key length is 1000 bytes
 IP Address: 127.0.0.1 - /admin/install/index.php?app=install§ion=install&do=sql
 ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
 mySQL query error: CREATE TABLE backup_vars (
  backup_var_key    VARCHAR(255) NOT NULL DEFAULT '',
  backup_var_value  TEXT,
  PRIMARY KEY (backup_var_key)
) ENGINE=MyISAM;
 .--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------.
 | File                                                                       | Function                                                                      | Line No.          |
 |----------------------------------------------------------------------------+-------------------------------------------------------------------------------+-------------------|
 | D:\XAMPP\htdocs\admin\setup\applications\install\sections\install.php      | [install_install].install_sql                                                 | 89                |
 '----------------------------------------------------------------------------+-------------------------------------------------------------------------------+-------------------'
 | D:\XAMPP\htdocs\admin\setup\sources\base\ipsController_setup.php           | [install_install].doExecute                                                   | 258               |
 '----------------------------------------------------------------------------+-------------------------------------------------------------------------------+-------------------'

comment_118895
Цитата

Не должно быть таких проблем на VARCHAR (255). Ну попробуйте задать тогда 250 (либо 249), открыв admin\applications\core\setup\versions\install\sql\core_mysql_tables.php 

Найти: backup_var_key VARCHAR(255) NOT NULL DEFAULT '',
И заменить на: backup_var_key VARCHAR(250) NOT NULL DEFAULT '', 

 

  • Author
comment_118896
34 минуты назад, WOLF сказал:

 

Теперь вылазит вот это:

mySQL query error: CREATE TABLE core_tags_perms (
    tag_perm_aai_lookup CHAR(32) NOT NULL DEFAULT '',
    tag_perm_aap_lookup CHAR(32) NOT NULL DEFAULT '',
    tag_perm_text VARCHAR(255) NOT NULL DEFAULT '',
    tag_perm_visible INT(1) NOT NULL DEFAULT 1,
    UNIQUE KEY tag_perm_aai_lookup (tag_perm_aai_lookup),
    KEY tag_perm_aap_lookup( tag_perm_aap_lookup ),
    KEY tag_lookup (tag_perm_text, tag_perm_visible)
) ENGINE=MyISAM;

SQL error: Specified key was too long; max key length is 1000 bytes
SQL error code: 1071
Date: Friday 30th December 2016 04:07:39 PM


 ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
 Date: Fri, 30 Dec 2016 16:07:39 +0000
 Error: 1071 - Specified key was too long; max key length is 1000 bytes
 IP Address: 127.0.0.1 - /admin/install/index.php?app=install§ion=install&do=sql
 ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
 mySQL query error: CREATE TABLE core_tags_perms (
    tag_perm_aai_lookup CHAR(32) NOT NULL DEFAULT '',
    tag_perm_aap_lookup CHAR(32) NOT NULL DEFAULT '',
    tag_perm_text VARCHAR(255) NOT NULL DEFAULT '',
    tag_perm_visible INT(1) NOT NULL DEFAULT 1,
    UNIQUE KEY tag_perm_aai_lookup (tag_perm_aai_lookup),
    KEY tag_perm_aap_lookup( tag_perm_aap_lookup ),
    KEY tag_lookup (tag_perm_text, tag_perm_visible)
) ENGINE=MyISAM;
 .--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------.
 | File                                                                       | Function                                                                      | Line No.          |
 |----------------------------------------------------------------------------+-------------------------------------------------------------------------------+-------------------|
 | D:\XAMPP\htdocs\admin\setup\applications\install\sections\install.php      | [install_install].install_sql                                                 | 89                |
 '----------------------------------------------------------------------------+-------------------------------------------------------------------------------+-------------------'
 | D:\XAMPP\htdocs\admin\setup\sources\base\ipsController_setup.php           | [install_install].doExecute                                                   | 258               |
 '----------------------------------------------------------------------------+-------------------------------------------------------------------------------+-------------------'

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.


Guest
Ответить в этой теме...

Последние посетители 0

  • No registered users viewing this page.