Page MenuHomePhabricator

Failed: run MySQL on a different port
Closed, ResolvedPublic

Description

Author: tobias.mucke

Description:
Hi everybody,

sorry I'm a little bit frustrated after the today's evening. I tried to install MediaWiki 1.22.0. I succeeded with the installation for many other version before. But this time I failed. Here is how it went: the installer did not accept that I run my MySQL database on a different port. I'm quite sure that former versions of MediaWiki did.

The error was: DB connection error: Unknown MySQL server host 'fqdn:3027' (2) (fqdn:3027). Check the host, username and password and try again.

First of all I thought that the problem are missing privileges in the MySQL database but I could connect fine with MySQL command line utility. For the installation my workaround was to use the default port. It just went fine as expected. After the installation I tried again to change the port number but with no success. MediaWiki was not able to connect to the database.

I was able to reproduce the issue on another Linux system at home. The installation of MediaWiki 1.22.0 fails / can not connect to db as soon as you provide a port number. At home I tried also to use the default port but specified it explicitly e. g. localhost:3306 and 127.0.0.1:3306.

With Mediawiki 1.21.3 specifying a port number is possible. Looks like something changed in the way the connection to the database is made.

I'll try to find a fix but I'm not a PHP developer. Any help appreciated.

Link to mail on mailing list: http://lists.wikimedia.org/pipermail/mediawiki-l/2014-January/042341.html

If I could support the bug fixing e. g. by testing don't mind to ask.

Thank you very much!

Best regards,

Tobias


Version: 1.22.0
Severity: normal
OS: Linux

Details

Reference
bz59657

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 2:18 AM
bzimport set Reference to bz59657.
bzimport added a subscriber: Unknown Object (MLST).
  • This bug has been marked as a duplicate of bug 58153 ***