Page MenuHomePhabricator

MySQLPageGenerator fall back to .my.cnf if config.db_hostname etc are not set
Closed, ResolvedPublic

Description

defaults are now

DATABASE SETTINGS

db_hostname = 'localhost'
db_username = 'wikiuser'
db_password = ''

but falling back to .my.cnf would allow direct usage on e.g. labs.


Version: core-(2.0)
Severity: normal

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 3:57 AM
bzimport set Reference to bz73147.
bzimport added a subscriber: Unknown Object (????).
jayvdb subscribed.

With the new connect(read_default_file=config.db_connect_file,...) , I suspect the ( good first task ) fix for this bug is to now add a default in config2.py : db_connect_file = os.path.expanduser('~.my.cnf')

gerritbot subscribed.

Change 185618 had a related patch set uploaded (by 01tonythomas):
MySQLPageGenerator fall back to .my.cnf if config.db_hostname etc are not set

https://gerrit.wikimedia.org/r/185618

Patch-For-Review

Change 185618 merged by jenkins-bot:
MySQLPageGenerator fall back to .my.cnf if config.db_hostname etc are not set

https://gerrit.wikimedia.org/r/185618

jayvdb claimed this task.