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
defaults are now
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
Subject | Repo | Branch | Lines +/- | |
---|---|---|---|---|
MySQLPageGenerator fall back to .my.cnf if config.db_hostname etc are not set | pywikibot/core | master | +1 -1 |
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')
Change 185618 had a related patch set uploaded (by 01tonythomas):
MySQLPageGenerator fall back to .my.cnf if config.db_hostname etc are not set
Change 185618 merged by jenkins-bot:
MySQLPageGenerator fall back to .my.cnf if config.db_hostname etc are not set