Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Updating or Inserting a database from a txt file

by mlh2003 (Scribe)
on May 10, 2005 at 13:50 UTC ( #455571=note: print w/replies, xml ) Need Help??


in reply to Updating or Inserting a database from a txt file

As ropey mentioned, remove the password in your post.

Also, the RaiseError attribute should be set in the connect statement (not after the ||):
my $dbh = DBI->connect( 'DBI:mysql:nikos_db', 'username', 'password', {RaiseError=>1} ) || die $DBI::err;
Then if the connect fails, it will die with the error reported from the $DBI::err variable.
_______
Code is untested unless explicitly stated
mlh2003

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (6)
As of 2021-10-26 08:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My first memorable Perl project was:







    Results (90 votes). Check out past polls.

    Notices?