Cubson Posted December 30, 2016 Share Posted December 30, 2016 Здравствуйте. У меня появилась проблема при установке 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 | '----------------------------------------------------------------------------+-------------------------------------------------------------------------------+-------------------' Quote Link to comment Share on other sites More sharing options...
WOLF Posted December 30, 2016 Share Posted December 30, 2016 Цитата Не должно быть таких проблем на 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 '', Quote Link to comment Share on other sites More sharing options...
Cubson Posted December 30, 2016 Author Share Posted December 30, 2016 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 | '----------------------------------------------------------------------------+-------------------------------------------------------------------------------+-------------------' Quote Link to comment Share on other sites More sharing options...
WOLF Posted December 30, 2016 Share Posted December 30, 2016 У вас какая версия mysql? какая кодировка БД? Quote Link to comment Share on other sites More sharing options...
Cubson Posted December 30, 2016 Author Share Posted December 30, 2016 55 минут назад, WOLF сказал: У вас какая версия mysql? какая кодировка БД? Кодировка utf8mb4_general_ci А как узнать версию MySQL? Quote Link to comment Share on other sites More sharing options...
WOLF Posted December 30, 2016 Share Posted December 30, 2016 кодировка должна быть utf8_general_ci Cubson 1 Quote Link to comment Share on other sites More sharing options...
Cubson Posted December 31, 2016 Author Share Posted December 31, 2016 14 часов назад, WOLF сказал: кодировка должна быть utf8_general_ci Спасибо большое, всё установилось. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.