in PHP by
Q:
How can we create a database using PHP and MySQL in PHP?

▼ Show 1 Answer

0 votes
by

The necessary steps to create a MySQL database using PHP are:

Establish a connection to MySQL server from your PHP script.

If the connection is successful, write a SQL query to create a database and store it in a string variable.

Execute the query.

Learn More with Madanswer

Related questions

0 votes
asked Jun 22, 2019 in PHP by SakshiSharma
...