http://www.perlmonks.org?node_id=798580


in reply to load data to MySQL database using Perl

I suspected I recognised the problem long before reading the code, so by way of explanation of ccns most apposite reply ...

All database updates/changes are transient i.e. they will only last for the duration of the session unless any changes are auto-committed on, or the changes are manually committed before, session closure.

A user level that continues to overstate my experience :-))
  • Comment on Re: load data to MySQL database using Perl

Replies are listed 'Best First'.
Re^2: load data to MySQL database using Perl
by gnuchu (Novice) on Oct 01, 2009 at 12:16 UTC
    You could always change your connect string to:
    my $dbh = DBI ->connect($dsn,$user,$password,{RaiseError=>1,AutoCommit => 1});

    Notice the Autocommit value...
      Hmmm, I take it that you didn't bother to read ccns reply before posting ??

      A user level that continues to overstate my experience :-))
        oops...