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)
Query INFORMATION\_SCHEMA.SCHEMATA to know if the database exists or not. Read more here - <http://dev.mysql.com/doc/refman/5.0/en/schemata-table.html>