Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: load data to MySQL database using Perl

by Bloodnok (Vicar)
on Oct 01, 2009 at 09:58 UTC ( [id://798580]=note: print w/replies, xml ) Need Help??


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...

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://798580]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (6)
As of 2024-04-25 09:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found