XP is just a number | |
PerlMonks |
Re: Tricks with DBI (esp. Connect)by htoug (Deacon) |
on Aug 15, 2001 at 12:33 UTC ( [id://104986]=note: print w/replies, xml ) | Need Help?? |
In newer versions of DBI the connect call has changed (the old one still works, but is depreceated). The call should be:
Where the "dbi:mysql:foo" bit is "dbi:'DBD-driver-name':'database-name-and-options'". You will have to see in the documentation for your chosen DBD to see what is possible and legal for the 'database-name-and-options' part. RaiseError is set in an anonymous hash - along with other database attributes.
Note that I set AutoCommit state in the connect call. This is highly recommended, and will become mandatory in a coming DBI release.
In Section
Tutorials
|
|