mysql_create_db()

It creates a MySQL database

Example

<?php
$conn    = mysql_connect(‘localhost’, ‘root’, ‘passowrd’);
mysql_query(“CREATE DATABASE database_name”, $conn) or die(“Failed”);
?>