In the last lesson we have seen, How to connect php with Mysql?.Here you are going to study, how to create a database in MySql using php. The database creating query syntax is same as SQL query.
Syntax For Database Creation:
create database database_name;
Example in Php:
$sql = "create database DB_1"; // Here sql is variable name and DB_1 is database name
Note : In MySql, we can create Database using front end tools too.. For that goto --> http://localhost/phpmyadmin/ --> Databases
|PHP WITH MYSQL DATABASE CREATION|