|
|
|
Clear questions and runnable code get the best and fastest answer |
|
| PerlMonks |
Re^4: MySQL Table adding with Perlby Corion (Patriarch) |
| on Mar 06, 2013 at 21:03 UTC ( [id://1022092]=note: print w/replies, xml ) | Need Help?? |
|
If you use the following to connect to the database, DBI will tell you more about where things (maybe) go wrong:
This saves you adding the error checking in every situation. A bit more advice - I like to read passwords from a separate file, or from %ENV or anywhere else. That way, I can't inadverently post the database password when posting (or printing) my script.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||||||||||