https://bugzilla.wikimedia.org/show_bug.cgi?id=43528
Web browser: ---
Bug ID: 43528
Summary: Non-friendly error message if user supplies wrong
database password during install
Product: MediaWiki
Version: 1.20.2
Hardware: All
URL: https://www.mediawiki.org/wiki/Thread:Project:Support_
desk/Error_when_trying_to_install_MediaWiki_1.20.2
OS: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: Installer
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
Classification: Unclassified
Mobile Platform: ---
>From support desk:
https://www.mediawiki.org/wiki/Thread:Project:Support_desk/Error_when_trying_to_install_MediaWiki_1.20.2
It would appear supplying the wrong password to installer gives a rather ugly
error message and plenty of headers already sent warnings. (Note I haven't
tried this myself, I'm going solely on the reported error - and the fact its an
access denied error. Its possible the situation may be more complicated then a
simple wrong db pass.)
The error the user received is:
Warning: Cannot modify header information - headers already sent in
C:\xampp\htdocs\wiki\includes\Exception.php on line 269
Warning: Cannot modify header information - headers already sent in
C:\xampp\htdocs\wiki\includes\Exception.php on line 270
Warning: Cannot modify header information - headers already sent in
C:\xampp\htdocs\wiki\includes\Exception.php on line 229 A database query syntax
error has occurred. This may indicate a bug in the software. The last attempted
database query was: CREATE DATABASE `my_wiki` from within function
"MysqlInstaller::setupDatabase". Database returned error "1044: Access denied
for user @'localhost' to database 'my_wiki' (localhost)". Backtrace:
1. 0 C:\xampp\htdocs\wiki\includes\db\Database.php(916):
DatabaseBase->reportQueryError('Access denied f...', 1044, 'CREATE
DATABASE...', 'MysqlInstaller:...', false)
2. 1 C:\xampp\htdocs\wiki\includes\installer\MysqlInstaller.php(469):
DatabaseBase->query('CREATE DATABASE...', 'MysqlInstaller:...')
3. 2 [internal function]:
MysqlInstaller->setupDatabase(Object(MysqlInstaller))
4. 3 C:\xampp\htdocs\wiki\includes\installer\Installer.php(1454):
call_user_func(Array, Object(MysqlInstaller))
5. 4 C:\xampp\htdocs\wiki\includes\installer\WebInstallerPage.php(1161):
Installer->performInstallation(Array, Array)
6. 5 C:\xampp\htdocs\wiki\includes\installer\WebInstaller.php(269):
WebInstaller_Install->execute()
7. 6 C:\xampp\htdocs\wiki\mw-config\index.php(50):
WebInstaller->execute(Array)
8. 7 C:\xampp\htdocs\wiki\mw-config\index.php(18): wfInstallerMain()
9. 8 {main}
--
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l