PDA

View Full Version : Installing MediaWiki


Xinos
31 Jan 2007, 11:40
I am trying to install a wiki on our webserver, but I am getting wierd results.

The documentation says I don't need to create a mysql database/user for the wiki, the install can do that, but since it failed I did it for it, but that didn't help.

Environment checked. You can install MediaWiki.

Generating configuration file...
Database type: MySQL
Loading class: DatabaseMysql
Attempting to connect to database server as adminpl...success.
Connected to 4.1.21-standard
Error selecting database wikidb: 1044 Access denied for user 'adminpl'@'localhost' to database 'wikidb'


Not sure if this is because I set database host to 'localhost', or if the database prefix "adminpl_" is not supposed to be there..
or if it's some other crazy reason..

MrBunsy
31 Jan 2007, 16:54
The documentation says you don't need to create a user? When I did it you definitely needed a user, how else will it get permission to do anything? If a script could create users it'd be a huge security flaw.

Not creating a database makes sense, but I can't see how you can get around 'permission denied' without creating a user.

evilworm2
31 Jan 2007, 18:29
If a script could create users it'd be a huge security flaw.

You have to delete that script after installation.

http://meta.wikimedia.org/wiki/Help:Installation

MrBunsy
31 Jan 2007, 19:01
Any script that can create users without needed to be logged on must be a security flaw, it means that users can be created without needed an existing logon. If it's local-only that's more secure, but still seems a large hole.

Oh, and from that link it seems I was right:

"If you know the root password for your database, (the password for the user called "root") the MediaWiki setup script can automatically create a database and an account to access it."

Xinos
1 Feb 2007, 15:01
No clues to what might be wrong?

MrBunsy
1 Feb 2007, 18:35
Error selecting database wikidb: 1044 Access denied for user 'adminpl'@'localhost' to database 'wikidb'I recon that if you try creating that user it'll work. Either that or give the install script the root password.