Hello everybody

I`ve created an application that uses MySQL. This application needs a specific database to use as well as a user with access rights to this database. Can I write a script that will create the database and the user and then execute it with the mysql utility?