Ho trovato in giro questa query
Codice: Seleziona tutto
UPDATE phpbb_posts SET `poster_id` = N WHERE `post_username` = 'the username';
UPDATE phpbb_topics SET `topic_poster` = N WHERE `topic_first_poster_name` = 'the username';
UPDATE phpbb_topics SET `topic_last_poster_id` = N WHERE `topic_last_poster_name` = 'the username';N= username cancellato
the username= username ripristinato (che nel mio caso sara' lo stesso del vecchio).
Quindi, ipotizzando un username PIPPO piu' o meno cosi':
Codice: Seleziona tutto
UPDATE phpbb_posts SET `poster_id` = PIPPO WHERE `post_username` = 'PIPPO';
UPDATE phpbb_topics SET `topic_poster` = PIPPO WHERE `topic_first_poster_name` = 'PIPPO';
UPDATE phpbb_topics SET `topic_last_poster_id` = PIPPO WHERE `topic_last_poster_name` = 'PIPPO';Ci ho provato ma non funziona, mi dice "username not found in field list" o qualcosa del genere.
Piccola nota: il prefisso delle mie tabelle non e' phpbb_ ma phpbb_3 quindi ho modificato la query di conseguenza.
edit successivo: sono "rinco" ... non mi ero reso conto che la query l'avevo tratta da un post di questo stesso forum, scusate
Eventualmente si puo' unire a quel topic.

