Jump to content

Manual talk:Pywikibot/MySQL

About this board

db_connect_file = None

5
Vladis13 (talkcontribs)

@Dvorapa: edit No, I checked the empty value today. The `db_username`/password using ONLY if `= None`. Take a look to code, lines 57-65. And you can see in debuger - there on value '' or empty using `{'read_default_file': config.db_connect_file}`.

Dvorapa (talkcontribs)

Yeah, but in Python at least: '' == None too. And also if no value ever set, Pywikibot really uses the default from config2, which is also ''. So it doesn't matter if db_connect_file is '', None or not set in the user-config, still db_username counts in all these cases. Therefore better not push users to change '' to None (as they are equal) and leave it as is.

Vladis13 (talkcontribs)

Sorry, but you mistake. 1) '' == None is False, see online console. 2) Users have error on connect to database, if do not set `db_connect_file = None`. Screenshot.

Dvorapa (talkcontribs)

I can not reproduce what you describe, maybe you should fill in a bug task to Phabricator as the behavior in this manual should be described correctly.

Vladis13 (talkcontribs)
Reply to "db_connect_file = None"

xywiki.labsdb or xywiki.analytics.db.svc.eqiad.wmflabs?

4
Dvorapa (talkcontribs)

@Zhuyifei1999:I noticed you changed this value. But in user-config.py (and config2.py) there is a different value suggested. I use xywiki.labsdb and it works for me, what is the correct value? We should fix the config2.py or this page and make them unified.

Zhuyifei1999 (talkcontribs)

The former used to point to a replica cluster that has now been decommissioned; it is now a deprecated alias for the latter, only kept for backwards-compatibility.

Dvorapa (talkcontribs)
Zhuyifei1999 (talkcontribs)
the former was better to remember and use.

Agreed.

Reply to "xywiki.labsdb or xywiki.analytics.db.svc.eqiad.wmflabs?"
There are no older topics