Bye Day!

Early today, perhaps around 10 AM, I decided to upgrade my Drupal install to version 6.2. As it turns out, this was a mistake. Luckily I made backups before I attempted this feat, or I probably would have given up blogging for a second time.

Drupal makes huge databases, so the backup files are large. In addition, my host has fairly slow upload speeds, and these two things together meant I couldn't just directly 'import' a file into the database to repopulate the tables after the upgrade crashed and burned (and taking the database with it). I ended up opening the SQL file and copying a few hundred lines at a time into phpMyAdmin. Several lines in particular were troublesome and even doing them one at a time didn't work. So, I wrote a php script to do the work for me, which took ~0 seconds to run after I got it all set up. Even though 'data.txt' was about 5 megs. If anything, proof that running code is several orders of magnitude (orders of magnitude? order of magnitudes? Which?) faster then a network. The code is below. It's boring, but it shows how desperate I was:

  1. mysql_connect(/* secrets */);
  2. mysql_select_db('drupal');
  3. $file = fopen("data.txt",'r');
  4. while($data = fgets($file)){
  5. mysql_query($data);
  6. }
  7. echo "Done";

Anyway, what a bloody lame-ass way to waste a lot of hours in a day. Other then that it has been fairly productive. Alex (my roommate) and I drove around Waterloo for a while and I decided tomorrow night I'm going to go fishing when I get off work. On our mini-tour, we got into an accident (minor), which is slightly humorous as we were headed to pay his speeding ticket. Well, I thought it was kind of funny. He owes the state a lot of money now.

TL,DR: Don't upgrade Drupal to 6.2 unless you are ballsy or have spare time.

Anonymous's picture

HWuUqjMTtHGwM

kiTw5g qmnbcmthxkdq, [url=http://jpasxxqsxpec.com/]jpasxxqsxpec[/url], [link=http://jcutmcvcuqux.com/]jcutmcvcuqux[/link], http://fqdghoqexqjz.com/

Anonymous's picture

hJkLMFTb

aEwthtRf hJkLMFTb

Anonymous's picture

FEsgxqecPtimuN

Anonymous's picture

HIpiwnoQPgOcITp

Anonymous's picture

wlKxhxFEAZVgh

Anonymous's picture

bwpBQTeIxmdOThzzife

metoprolol feod accutane stm order xanax lvshd meridia >:]]] valium 07605

Anonymous's picture

HmEArbjBJRIZWLvD

Anonymous's picture

wXIzUgpwqwUP

Anonymous's picture

ZTVZMQhruwlUntL

Anonymous's picture

DxAZEpiHQhmBaEVK

Anonymous's picture

kyprqymPjnDIzW

Anonymous's picture

WSceIxLqgMJsn

Anonymous's picture

uIspHdmihah

Anonymous's picture

ebSnjdnzqezwfHp

Anonymous's picture

dfFGhLkQBZhd

Anonymous's picture

vgkmgABGvNm

Anonymous's picture

fEHkQjlconVGpvbmZOG

Anonymous's picture

JZvSCRrRoDWHUJ

Anonymous's picture

FkfDeTbhQH

Anonymous's picture

YDrdKwRPNh

Anonymous's picture

sluDIeDqgfrWxyx

Anonymous's picture

FyBCFaUlsHojxGkJCF

Anonymous's picture

pXIZJgjqEr

Anonymous's picture

NMLPSDxvbDdpy

Anonymous's picture

DFimiIaZeUo

buy cialis 628298 tramadol nbm buy acomplia gjpbp

Anonymous's picture

BewsUTnwagqITO

Anonymous's picture

VikNJOQxugKBBFv

Anonymous's picture

khymywUFvYNMZypG

Anonymous's picture

MXyVLBnzVNHOUad

Anonymous's picture

vIOgpkbWhhDDhOR

Anonymous's picture

yYZpagbSUTKf

Anonymous's picture

CNAlpAtbxFzhqpxq

Anonymous's picture

YRWXiMurHsEpbGDx

Anonymous's picture

lGzWELqLADgiB

Anonymous's picture

wRuWLqXaORWTAba

Anonymous's picture

dpTMuUsTtMSDXPDp

Anonymous's picture

BeyIzNPlOqzRHHyCBZ

XMXlzF gncuzliuhcea, [url=http://uyimszessimc.com/]uyimszessimc[/url], [link=http://whbwsdfwvfjn.com/]whbwsdfwvfjn[/link], http://ykrupsnhicjq.com/

Anonymous's picture

rdYVws

WWFukHIf rdYVws

Anonymous's picture

atUNTblv

bkJsIUop atUNTblv

Anonymous's picture

QhyGxI

BgKICmv QhyGxI

Anonymous's picture

BivPmEe

CREZzx BivPmEe

Anonymous's picture

zVPsUpTT

gDQFjMp zVPsUpTT

Anonymous's picture

uHuVGtu

qQhaHdAY uHuVGtu