code will print "Table exist" whether the database exist or not. Please help.use DBI; eval { $dbh = DBI->do('dbi:mysql:xxxxxxx','root','') or die "Connection Error: $DBI::errstr\n" } ; if (defined $dbh) { print "Table does not exist.\n"; } else { print "Table exist";}
In reply to Re^2: How to find MySQL database exist or not
by edi
in thread How to find MySQL database exist or not
by edi
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |