[Pkg-mediawiki-devel] Bug#698617: mediawiki: On a new site installation, it cannot create the database since it doesn't get the user name

Rene Horn ndogg at supercheetah.net
Mon Jan 21 08:26:29 UTC 2013

Package: mediawiki
Version: 1:1.19.3-1
Severity: important

Dear Maintainer,

   * What led up to the situation?

I just installed Mediawiki, and I had created a vhost for it.  I was going through the initial setup, and got to the end where it 
tries to create the database.

   * What exactly did you do (or not do) that was effective (or

I was just trying to complete the web interface installation (mw-config/index.php).

   * What was the outcome of this action?

I got this error from the install (it seems that it did not pass in the user name, which in this case I put in 'dice_wiki' for the 
user name):

Setting up database...A database query syntax error has occurred. This may indicate a bug in the software. The last attempted 
database query was:

    CREATE DATABASE `dice_wiki`

from within function "MysqlInstaller::setupDatabase". Database returned error "1044: Access denied for user ''@'localhost' to 
database 'dice_wiki' (localhost)".


#0 /usr/share/mediawiki/includes/db/Database.php(885): DatabaseBase->reportQueryError('Access denied f...', 1044, 'CREATE DATABASE...', 'MysqlInstaller:...', false)
#1 /usr/share/mediawiki/includes/installer/MysqlInstaller.php(454): DatabaseBase->query('CREATE DATABASE...', 'MysqlInstaller:...')
#2 [internal function]: MysqlInstaller->setupDatabase(Object(MysqlInstaller))
#3 /usr/share/mediawiki/includes/installer/Installer.php(1399): call_user_func(Array, Object(MysqlInstaller))
#4 /usr/share/mediawiki/includes/installer/WebInstallerPage.php(1142): Installer->performInstallation(Array, Array)
#5 /usr/share/mediawiki/includes/installer/WebInstaller.php(254): WebInstaller_Install->execute()
#6 /usr/share/mediawiki/mw-config/index.php(50): WebInstaller->execute(Array)
#7 /usr/share/mediawiki/mw-config/index.php(18): wfInstallerMain()
#8 {main}

   * What outcome did you expect instead?

The successful completion of the installation from the web interface.

Rene Horn

-- System Information:
Debian Release: 7.0
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable')
Architecture: i386 (i686)

Kernel: Linux 3.5.2-linode45 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages mediawiki depends on:
ii  apache2                      2.2.22-12
ii  apache2-mpm-prefork [httpd]  2.2.22-12
ii  debconf [debconf-2.0]        1.5.49
ii  libjs-jquery                 1.7.2+dfsg-1
ii  libjs-jquery-cookie          6-1
ii  libjs-jquery-form            6-1
ii  libjs-jquery-tipsy           6-1
ii  mime-support                 3.52-2
ii  php5                         5.4.4-11
ii  php5-mysql                   5.4.4-11
ii  php5-pgsql                   5.4.4-11

Versions of packages mediawiki recommends:
ii  mediawiki-extensions-base  2.11
ii  mysql-server               5.5.29+dfsg-1
ii  php-wikidiff2              0.0.1+svn109581-1
ii  php5-cli                   5.4.4-11
ii  python                     2.7.3-3

Versions of packages mediawiki suggests:
pn  clamav          <none>
ii  imagemagick     8:
pn  mediawiki-math  <none>
pn  memcached       <none>
ii  php5-gd         5.4.4-11

-- debconf information:
* mediawiki/webserver: apache2

More information about the Pkg-mediawiki-devel mailing list