# \[php & MySQL\] create database and tables w/ php

**URL:** <https://forum.kirupa.com/t/php-mysql-create-database-and-tables-w-php/221496>\
**Category:** programming\
**Created:** [April 4, 2007, 6:55pm UTC](https://forum.kirupa.com/t/php-mysql-create-database-and-tables-w-php/221496 "2007-04-04T18:55:12Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![chrisclick](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/chrisclick/32/1991_2.png) [@chrisclick](https://forum.kirupa.com/u/chrisclick)\
**Post date:** [April 4, 2007, 6:55pm UTC](https://forum.kirupa.com/t/php-mysql-create-database-and-tables-w-php/221496/1 "2007-04-04T18:55:12Z")

</div>

Hi all… This may be a noobie question but still, I need an answer 😛

What I want:  
**a php document were a user can enter their MySQL detais (host, username, password and database) and then PHP will take a SQL file and dump it into MySQL to make all the tables required.**

I know this is possible but can anyone tell me how to do it?
