Question: Can any one tell me the query to know data base name already exists or not in mysq.

Thank You

Answer: 
are you trying to create a database only if i doesnt exist? here is how

```
CREATE DATABASE IF NOT EXISTS db_name

```

[Read More](http://dev.mysql.com/doc/refman/5.5/en/create-database.html)
```
use mysql;

count * from db where db="your_db_name";

```