Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Answer: How can I see error messages from MySQL?

by BBQ (Deacon)
on Jul 10, 2000 at 09:59 UTC ( #21753=categorized answer: print w/replies, xml ) Need Help??

Q&A > database programming > How can I see error messages from MySQL? - Answer contributed by BBQ

DBI has return values for each one of its calls, so it would be wise to or your connect statement, like:
$dbh = DBI->connect("DBI::mysql ... etc $dsn") or die("Couldn't connect to $dsn: $DBI::errstr\n");
this way, you'll always get an error message if something goes wrong.

Log In?
Username:
Password:

What's my password?
Create A New User
Chatterbox?
Discipulus Poste Italiane..

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (8)
As of 2017-03-30 08:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should Pluto Get Its Planethood Back?



    Results (355 votes). Check out past polls.