Thank you in advance!use DBI; eval { $dbh = DBI->do('dbi:mysql: xxxxx','root','') or die "Connection Error: $DBI::errstr\n"} ; if ($dbh == 'undef') { print "Table does not exist.\n"; } else { print "table exist"; }
In reply to How to find MySQL database exist or not by edi
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |