#!/bin/bash mysql -uroot -p -hlocalhost << EOF create database gitbucket; grant all privileges on \`gitbucket\`.* to gitbucket@localhost identified by 'gitbucketdbpassword'; flush privileges; quit EOF