Page MenuHomePhabricator

When $wgDBprefix is not set, the updater should not use a table prefix (leads to "Error: 1146 Table doesn't exist")
Closed, ResolvedPublic

Description

When installing MW_1.31.1 I encounter a database error.

Look here for a sample wiki, where all the steps are documented by screenshots.

The empty database file is included too. So anybody can download it and test it on other systems in order to determine whether this is a bug.

Thanks.

Event Timeline

The problem can be described more clearly: $wgDBprefix is not set, so there should not be a table prefix.

Depending on which table engine is chosen, MediaWiki during installation tries to access tables with table prefix "innodb" or "isamdb", which is just wrong.

See https://www.mediawiki.org/wiki/Topic:Up8ur3ia3nb2vm3q.

Aklapper renamed this task from Database error when installing MW 1.31.1 to When $wgDBprefix is not set, the updater should not use a table prefix (leads to "Error: 1146 Table doesn't exist").Nov 27 2018, 8:21 PM
Aklapper added a project: MediaWiki-Installer.

With all the rework done to the database code in core, i'd find it very unlikely that this (still) happens, without any complaints in the last 6 years. I'm thus closing it, and a new ticket with new details can be filed if people have similar experiences.

TheDJ claimed this task.