in reply to Re: How to find MySQL database exist or not
in thread How to find MySQL database exist or not
Of course, all it checks is whether one can connect - not whether a database exists (title question) or whether a table exists (message printed).if ($dbh = DBI->do('dbi:mysql: xxxxx','root','')) { print "Table exists\n" } else { print "Table does not exists"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: How to find MySQL database exist or not
by roboticus (Chancellor) on Sep 01, 2011 at 16:07 UTC | |
|
Re^3: How to find MySQL database exist or not
by choroba (Cardinal) on Sep 01, 2011 at 16:09 UTC | |
|
Re^3: How to find MySQL database exist or not
by edi (Initiate) on Sep 02, 2011 at 11:16 UTC |