Create/Configure MYSQL database from php

You’ll have to create an installation script, which first checks the connectivity and permissions of the database user (the credentials) given by the installing person (your customer). If the database user has the proper permissions, the installation script should then create the necessary schema and add any data needed for the application to work.

Scott