|
|
| Don't ask to ask, just ask | |
| PerlMonks |
Re^3: How to find MySQL database exist or notby Marshall (Prior) |
| on Sep 03, 2011 at 04:06 UTC ( #923959=note: print w/ replies, xml ) | Need Help?? |
|
I think that you are mixing up a couple of things. There is a dataset name ($dsn) which is a mySQL database on a particular host name and port number. That has to exist or you are going "nowhere"! If the $dsn exists, then you can attempt to connect to it. This is where the user name and passwords are required.
The $dsn and the final connected handle, $dbh are very different things.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||