Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: load data to MySQL database using Perl

by Bloodnok (Vicar)
on Oct 01, 2009 at 09:58 UTC ( #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? | Other CB clients
Other Users?
Others imbibing at the Monastery: (2)
As of 2022-01-21 23:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In 2022, my preferred method to securely store passwords is:












    Results (59 votes). Check out past polls.

    Notices?