Am trying to install MediaWiki 1.20.2
I create a new db called db_wikimedia via my web host and set up an admin user called db_wiki_admin and put these details in the install script but at the final step it fails with:
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 `db_wikimedia`
from within function ‘MysqlInstaller::setupDatabase.’ Database returned error ‘1044: Access denied for user 'db_wiki_admin'@'%' to database 'db_wikimedia' (localhost).’
Backtrace:
#0 /var/www/vhosts/smoketest.info/wiki/includes/db/Database.php(916): DatabaseBase->reportQueryError('Access denied f...', 1044, 'CREATE DATABASE...', 'MysqlInstaller:...', false)
#1 /var/www/vhosts/smoketest.info/wiki/includes/installer/MysqlInstaller.php(469): DatabaseBase->query('CREATE DATABASE...', 'MysqlInstaller:...')
#2 [internal function]: MysqlInstaller->setupDatabase(Object(MysqlInstaller))
#3 /var/www/vhosts/smoketest.info/wiki/includes/installer/Installer.php(1454): call_user_func(Array, Object(MysqlInstaller))
#4 /var/www/vhosts/smoketest.info/wiki/includes/installer/WebInstallerPage.php(1161): Installer->performInstallation(Array, Array)
#5 /var/www/vhosts/smoketest.info/wiki/includes/installer/WebInstaller.php(269): WebInstaller_Install->execute()
#6 /var/www/vhosts/smoketest.info/wiki/mw-config/index.php(50): WebInstaller->execute(Array)
#7 /var/www/vhosts/smoketest.info/wiki/mw-config/index.php(18): wfInstallerMain()
#8 {main}
Why should it be trying to create a database that I've already created and told it about. What am I missing? Should I be configuring this some other way?
Thanks
David
PS Since I am new to Wikis, how do I embed code (or, rather, the error message as pasted in above) to make it render correctly? I was looking for some tags but don't know where to start. :o(