The database queries in my bots, based on Pywikibot, crashes after the March changes (renamed the database replica T278252 and a few changes in Pywikibot like).
From my PC (via SSH tunnel) scripts work, but not on toolforge.org server.
To example, I run python promt on the server:
>>> from pywikibot.data import mysql >>> sql = "SELECT * FROM page LIMIT 10;" >>> result = mysql.mysql_query(sql, dbname='ruwiki') >>> list(result) Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/data/project/shared/pywikipedia/core/pywikibot/data/mysql.py", line 67, in mysql_query with connection as conn, conn.cursor() as cursor: AttributeError: 'Cursor' object has no attribute 'cursor'
>>> from pywikibot import config2 as config >>> config.db_hostname_format.format(dbname) 'ruwiki.web.db.svc.wikimedia.cloud' >>> config.db_name_format.format(dbname) 'ruwiki_p' >>> config.db_port 3306 >>> credentials {'read_default_file': '/data/project/vltools/replica.my.cnf'}