Menu

MySQL database setup via PHP

The mysqldump solution allowed little control on the creation of the database. So, I created 2 setup files that allow the creation of the database (setup.php) and fill it with some initial data (setup_data.php).
FIRST change the $hostName, $userName, $password and $databasename in these files.
As soon as you launch them the creation (filling) starts.

For my installation, I used InnoDB as the MySQL engine. It could be you don't want this and want to use the MyISAM engine instead, simply change the SQL statements correspondently.

Posted by HUYSMANSW 2004-12-05

Log in to post a comment.