That’s my Tumblog... Thoughts and Actions time by time!

Modifiche di massa al DB da phpMyAdmin

Ho trovato quasi per caso (nel senso che stavo cercando tutt’altro) una query SQL che consente di rimpiazzare certe occorrenze nel database, mi sono quindi deciso ad aggiornare i vecchi link del blog con quelli su tuxfamily…

È bastato un semplicissimo:

UPDATE wp_posts SET post_content =
REPLACE(post_content,'http://italy.copybase.ch/blog','http://3v1n0.tuxfamily.org/blog');

2 Commenti

  1. Con questa stringa ho aggiornato gelato per usare l'URL Friendly:

    UPDATE gelato_data SET description = REPLACE(description,'tumblelog/index.php?post=','tumblelog/post/');
  2. Justin Bieber will only be 18 many years aged, but it truly is no hidden secret which the pop sensation has previously attained a amount of triumph which is actually remarkable for anybody, a good deal a lot less a youngster. She's a major troop supporter plus a marvelous American.
    cheap uggs
    [url=http://www.welshdarts.co.uk/cheap-uggs-c-1.html]cheap uggs[/url]

Lascia un commento

TexTile: È possibile inserire commenti usando la sintassi Textile
Incollare contenuti: Per non creare problemi con il layout del sito e per non riempire la zona dedicata ai commenti con eccessivo materiale, vi prego di incollare i contenuti di file di log, script e simili inserendo qui il link che otterrete inserendo i vosti materiali sul servizio Ubuntu Pastebin (o alternativi)