OK, I have media wiki in this server installed for 3 domains.. today I went to do it again and I get this below, I search around and I try most of the solutions from changing 250 to 180 the (values) but still getting the problem.. :-( also notes the error for them is before than were I am getting it.. so maybe my case is different so here is a copy and paste:
Checking environment...
/Please include all of the lines below when reporting installation problems./
* PHP 5.2.2-pl1-gentoo installed * Found database drivers for: MySQL * PHP server API is apache2handler; ok, using pretty URLs (index.php/Page_Title) * Have XML / Latin1-UTF-8 conversion support. * *Warning:* A value for session.save_path has not been set in PHP.ini. If the default value causes problems with saving session data, set it to a valid path which is read/write/execute for the user your web server is running under. * PHP's memory_limit is 128M. * Couldn't find Turck MMCache http://turck-mmcache.sourceforge.net, eAccelerator http://eaccelerator.sourceforge.net, or APC http://www.php.net/apc. Object caching functions cannot be used. * Found GNU diff3: /usr/bin/diff3. * Found GD graphics library built-in, image thumbnailing will be enabled if you enable uploads. * Installation directory: /var/www/studentwalkout.info/htdocs * Script URI path: * Environment checked. You can install MediaWiki. *
*Generating configuration file...*
* Database type: MySQL * Loading class: DatabaseMysql * Attempting to connect to database server as root...success. * Connected to 5.0.42-log; enabling MySQL 4.1/5.0 charset mode * Database swout exists * There are already MediaWiki tables in this database. Checking if updates are needed... * DB user account ok
...hitcounter table already exists. ...querycache table already exists. ...objectcache table already exists. ...categorylinks table already exists. ...logging table already exists. ...user_newtalk table already exists. ...transcache table already exists. ...trackbacks table already exists. ...externallinks table already exists. ...job table already exists. ...langlinks table already exists. ...querycache_info table already exists. ...filearchive table already exists. ...querycachetwo table already exists. ...have ipb_id field in ipblocks table. ...have ipb_expiry field in ipblocks table. ...have rc_type field in recentchanges table. ...have rc_ip field in recentchanges table. ...have rc_id field in recentchanges table. ...have rc_patrolled field in recentchanges table. ...have rc_old_len field in recentchanges table. ...have user_real_name field in user table. ...have user_token field in user table. ...have user_email_token field in user table. ...have user_registration field in user table. ...have log_params field in logging table. ...have ar_rev_id field in archive table. ...have ar_text_id field in archive table. ...have page_len field in page table. ...have rev_deleted field in revision table. ...have img_width field in image table. ...have img_metadata field in image table. ...have img_media_type field in image table. ...have ss_total_pages field in site_stats table. ...have iw_trans field in interwiki table. ...have ipb_range_start field in ipblocks table. ...have ss_images field in site_stats table. ...have ipb_anon_only field in ipblocks table. ...have ipb_enable_autoblock field in ipblocks table. ...have user_newpass_time field in user table. ...have user_editcount field in user table. ...have rc_deleted field in recentchanges table. ...have log_id field in logging table. ...have log_deleted field in logging table. ...have ar_deleted field in archive table. ...have ipb_deleted field in ipblocks table. ...have fa_deleted field in filearchive table. ...have rev_len field in revision table. ...have ar_len field in archive table. ...have rev_parent_id field in revision table. ...page_restrictions table does not exist, skipping new field patch ...already have interwiki table ...indexes seem up to 20031107 standards Already have pagelinks; skipping old links table updates. ...image primary key already set. The watchlist table is already set up for email notification. ...watchlist talk page rows already present ...user table does not contain old email authentication field. Logging table has correct title encoding. ...page table already exists. revision timestamp indexes already up to 2005-03-13 ...rev_text_id already in place. ...page_namespace is already a full int (int(11)). ...ar_namespace is already a full int (int(11)). ...rc_namespace is already a full int (int(11)). ...wl_namespace is already a full int (int(11)). ...qc_namespace is already a full int (int(11)). ...log_namespace is already a full int (int(11)). ...already have pagelinks table. ...templatelinks table already exists No img_type field in image table; Good. Already have unique user_name index. ...user_groups table already exists. ...user_groups is in current format. ...wl_notificationtimestamp is already nullable. ...timestamp key on logging already exists. Setting page_random to a random value on rows where it equals 0...changed 0 rows Checking for additional recent changes indices... ...index on ( rc_namespace, rc_user_text ) seems to be ok ...index on ( rc_user_text, rc_timestamp ) seems to be ok ...redirect table already exists. Checking for backlinking indices... Checking if pagelinks index pl_namespace includes field pl_from... ...index pl_namespace on table pagelinks seems to be ok Checking if templatelinks index tl_namespace includes field tl_from... ...index tl_namespace on table templatelinks seems to be ok Checking if imagelinks index il_to includes field il_from... ...index il_to on table imagelinks seems to be ok Creating page_restrictions table...Query "CREATE TABLE `page_restrictions` ( pr_page int(8) NOT NULL, pr_type varchar(255) NOT NULL, pr_level varchar(255) NOT NULL, pr_cascade tinyint(4) NOT NULL, pr_user int(8) NULL, pr_expiry char(14) binary NULL, PRIMARY KEY pr_pagetype (pr_page,pr_type), KEY pr_page (pr_page), KEY pr_typelevel (pr_type,pr_level), KEY pr_level (pr_level), KEY pr_cascade (pr_cascade) ) ENGINE=InnoDB, DEFAULT CHARSET=utf8 " failed with error code "Specified key was too long; max key length is 1000 bytes (localhost)".
Bump! anyone, please?
rek2GNU/Linux wrote:
OK, I have media wiki in this server installed for 3 domains.. today I went to do it again and I get this below, I search around and I try most of the solutions from changing 250 to 180 the (values) but still getting the problem.. :-( also notes the error for them is before than were I am getting it.. so maybe my case is different so here is a copy and paste:
Checking environment...
/Please include all of the lines below when reporting installation problems./
PHP 5.2.2-pl1-gentoo installed
Found database drivers for: MySQL
PHP server API is apache2handler; ok, using pretty URLs (index.php/Page_Title)
Have XML / Latin1-UTF-8 conversion support.
*Warning:* A value for session.save_path has not been set in PHP.ini. If the default value causes problems with saving session data, set it to a valid path which is read/write/execute for the user your web server is running under.
PHP's memory_limit is 128M.
Couldn't find Turck MMCache http://turck-mmcache.sourceforge.net, eAccelerator http://eaccelerator.sourceforge.net, or APC http://www.php.net/apc. Object caching functions cannot be used.
Found GNU diff3: /usr/bin/diff3.
Found GD graphics library built-in, image thumbnailing will be enabled if you enable uploads.
Installation directory: /var/www/studentwalkout.info/htdocs
Script URI path:
Environment checked. You can install MediaWiki.
*Generating configuration file...*
Database type: MySQL
Loading class: DatabaseMysql
Attempting to connect to database server as root...success.
Connected to 5.0.42-log; enabling MySQL 4.1/5.0 charset mode
Database swout exists
There are already MediaWiki tables in this database. Checking if updates are needed...
DB user account ok
...hitcounter table already exists. ...querycache table already exists. ...objectcache table already exists. ...categorylinks table already exists. ...logging table already exists. ...user_newtalk table already exists. ...transcache table already exists. ...trackbacks table already exists. ...externallinks table already exists. ...job table already exists. ...langlinks table already exists. ...querycache_info table already exists. ...filearchive table already exists. ...querycachetwo table already exists. ...have ipb_id field in ipblocks table. ...have ipb_expiry field in ipblocks table. ...have rc_type field in recentchanges table. ...have rc_ip field in recentchanges table. ...have rc_id field in recentchanges table. ...have rc_patrolled field in recentchanges table. ...have rc_old_len field in recentchanges table. ...have user_real_name field in user table. ...have user_token field in user table. ...have user_email_token field in user table. ...have user_registration field in user table. ...have log_params field in logging table. ...have ar_rev_id field in archive table. ...have ar_text_id field in archive table. ...have page_len field in page table. ...have rev_deleted field in revision table. ...have img_width field in image table. ...have img_metadata field in image table. ...have img_media_type field in image table. ...have ss_total_pages field in site_stats table. ...have iw_trans field in interwiki table. ...have ipb_range_start field in ipblocks table. ...have ss_images field in site_stats table. ...have ipb_anon_only field in ipblocks table. ...have ipb_enable_autoblock field in ipblocks table. ...have user_newpass_time field in user table. ...have user_editcount field in user table. ...have rc_deleted field in recentchanges table. ...have log_id field in logging table. ...have log_deleted field in logging table. ...have ar_deleted field in archive table. ...have ipb_deleted field in ipblocks table. ...have fa_deleted field in filearchive table. ...have rev_len field in revision table. ...have ar_len field in archive table. ...have rev_parent_id field in revision table. ...page_restrictions table does not exist, skipping new field patch ...already have interwiki table ...indexes seem up to 20031107 standards Already have pagelinks; skipping old links table updates. ...image primary key already set. The watchlist table is already set up for email notification. ...watchlist talk page rows already present ...user table does not contain old email authentication field. Logging table has correct title encoding. ...page table already exists. revision timestamp indexes already up to 2005-03-13 ...rev_text_id already in place. ...page_namespace is already a full int (int(11)). ...ar_namespace is already a full int (int(11)). ...rc_namespace is already a full int (int(11)). ...wl_namespace is already a full int (int(11)). ...qc_namespace is already a full int (int(11)). ...log_namespace is already a full int (int(11)). ...already have pagelinks table. ...templatelinks table already exists No img_type field in image table; Good. Already have unique user_name index. ...user_groups table already exists. ...user_groups is in current format. ...wl_notificationtimestamp is already nullable. ...timestamp key on logging already exists. Setting page_random to a random value on rows where it equals 0...changed 0 rows Checking for additional recent changes indices... ...index on ( rc_namespace, rc_user_text ) seems to be ok ...index on ( rc_user_text, rc_timestamp ) seems to be ok ...redirect table already exists. Checking for backlinking indices... Checking if pagelinks index pl_namespace includes field pl_from... ...index pl_namespace on table pagelinks seems to be ok Checking if templatelinks index tl_namespace includes field tl_from... ...index tl_namespace on table templatelinks seems to be ok Checking if imagelinks index il_to includes field il_from... ...index il_to on table imagelinks seems to be ok Creating page_restrictions table...Query "CREATE TABLE `page_restrictions` ( pr_page int(8) NOT NULL, pr_type varchar(255) NOT NULL, pr_level varchar(255) NOT NULL, pr_cascade tinyint(4) NOT NULL, pr_user int(8) NULL, pr_expiry char(14) binary NULL, PRIMARY KEY pr_pagetype (pr_page,pr_type), KEY pr_page (pr_page), KEY pr_typelevel (pr_type,pr_level), KEY pr_level (pr_level), KEY pr_cascade (pr_cascade) ) ENGINE=InnoDB, DEFAULT CHARSET=utf8 " failed with error code "Specified key was too long; max key length is 1000 bytes (localhost)".
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
rek2GNU/Linux wrote: [snip]
) ENGINE=InnoDB, DEFAULT CHARSET=utf8 " failed with error code "Specified key was too long; max key length is 1000 bytes (localhost)".
Probably your MySQL has InnoDB disabled, so it's falling back to MyISAM, and the key length limit is too small.
If this is an older version, can you try again with 1.10.1? The new installer code is supposed to be handling that case correctly, iirc.
Alternatively, check your my.cnf and/or the compile options for mysql and make sure InnoDB support is enabled and available.
-- brion vibber (brion @ wikimedia.org)
Brion Vibber wrote:
rek2GNU/Linux wrote: [snip]
) ENGINE=InnoDB, DEFAULT CHARSET=utf8 " failed with error code "Specified key was too long; max key length is 1000 bytes (localhost)".
Probably your MySQL has InnoDB disabled, so it's falling back to MyISAM, and the key length limit is too small.
If this is an older version, can you try again with 1.10.1? The new installer code is supposed to be handling that case correctly, iirc.
Alternatively, check your my.cnf and/or the compile options for mysql and make sure InnoDB support is enabled and available.
-- brion vibber (brion @ wikimedia.org)
Hi, thanks so much for your response I appreciate it, ok I have check if I have InnoDB disable but does not looks like I do..
the following is the InnoDB configuration # if you wish to disable innodb instead # uncomment just the next line #skip-innodb # # the rest of the innodb config follows: # don't eat too much memory, we're trying to be safe on 64Mb boxes # you might want to bump this up a bit on boxes with more RAM innodb_buffer_pool_size = 26M # this is the default, increase it if you have lots of tables innodb_additional_mem_pool_size = 3M # # i'd like to use /var/lib/mysql/innodb, but that is seen as a database :-( # and upstream wants things to be under /var/lib/mysql/, so that's the route # we have to take for the moment #innodb_data_home_dir = /var/lib/mysql/ #innodb_log_arch_dir = /var/lib/mysql/ #innodb_log_group_home_dir = /var/lib/mysql/ # you may wish to change this size to be more suitable for your system # the max is there to avoid run-away growth on your machine innodb_data_file_path = ibdata1:10M:autoextend:max:128M # we keep this at around 25% of of innodb_buffer_pool_size # sensible values range from 1MB to (1/innodb_log_files_in_group*innodb_buffer_pool_size) innodb_log_file_size = 5M # this is the default, increase it if you have very large transactions going on innodb_log_buffer_size = 8M # this is the default and won't hurt you # you shouldn't need to tweak it set-variable = innodb_log_files_in_group=2 # see the innodb config docs, the other options are not always safe innodb_flush_log_at_trx_commit = 1 innodb_lock_wait_timeout = 50
So I am looking at the right place? if I am, and this is not the issue, then I should upgrade? or who can I check that I am using InnoDB on this tables by default? is possible that I am not?
also I don't think there is an ebuild for gentoo yet for the newer version the last one is the one I am running unfortunately so I may try with the source code and see what happens after you confirm with me that I am using InnoDB.
Thanks again
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
mediawiki-l@lists.wikimedia.org