summaryrefslogtreecommitdiff
path: root/maintenance/changeuser.sql
blob: ad1c6da6fff7a5462a2b67bdf45823109edf7d54 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
set @oldname = 'At18'; 
set @newname = 'Alfio';

update low_priority /*$wgDBprefix*/user set user_name=@newname where user_name=@oldname;
update low_priority /*$wgDBprefix*/user_newtalk set user_ip=@newname where user_ip=@oldname;
update low_priority /*$wgDBprefix*/cur set cur_user_text=@newname where cur_user_text=@oldname;
update low_priority /*$wgDBprefix*/old set old_user_text=@newname where old_user_text=@oldname;
update low_priority /*$wgDBprefix*/archive set ar_user_text=@newname where ar_user_text=@oldname;
update low_priority /*$wgDBprefix*/ipblocks set ipb_address=@newname where ipb_address=@oldname;
update low_priority /*$wgDBprefix*/oldimage set oi_user_text=@newname where oi_user_text=@oldname;
update low_priority /*$wgDBprefix*/recentchanges set rc_user_text=@newname where rc_user_text=@oldname;