Query MySQL's internal tables for the information:
1) macbookpoe:~% mysql -BN -e 'select count(1) from information_schema +.TABLES where TABLE_SCHEMA="test" and TABLE_NAME="moo"' 1 1) macbookpoe:~% mysql -BN -e 'select count(1) from information_schema +.TABLES where TABLE_SCHEMA="test" and TABLE_NAME="moue"' 0
In reply to Re: How to find MySQL database exist or not
by rcaputo
in thread How to find MySQL database exist or not
by edi
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |