https://bugzilla.wikimedia.org/show_bug.cgi?id=63396

--- Comment #9 from Antoine "hashar" Musso (WMF) <[email protected]> ---
From a mail Bryan Davis sent me a while ago:

When folks reported not being able to log in to deployment.beta and
Chad and I both realized "wiki rename" at the same time here's what I
did to try and fix:

Using this script:

$ cat betasql
#!/bin/sh

USER=`php -r 'include("/a/common/wmf-config/PrivateSettings.php");
print $wgDBuser;'`
PASS=`php -r 'include("/a/common/wmf-config/PrivateSettings.php");
print $wgDBpassword;'`
HOST="deployment-db1"
mysql -u $USER -p$PASS -h $HOST


> use centralauth
> update localuser set lu_wiki = 'deploymentwiki' where lu_wiki = 'labswiki';
Query OK, 940 rows affected (0.39 sec)
Rows matched: 940  Changed: 940  Warnings: 0

> update localnames set ln_wiki = 'deploymentwiki' where ln_wiki = 'labswiki';
Query OK, 943 rows affected (0.54 sec)
Rows matched: 943  Changed: 943  Warnings: 0

> update globaluser set gu_home_db = 'deploymentwiki' where gu_home_db = 
> 'labswiki';
Query OK, 84 rows affected (0.49 sec)
Rows matched: 84  Changed: 84  Warnings: 0

I also looked at wikiset.ws_wikis and renameuser_status.ru_wiki but
neither of them mentioned the old labswiki name.

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to