You can use mysql.server in your scripts for that purpose.