I wish to make a move like

CREATE DATABASE IF NOT EXISTS @database_name;

From reading through the mysql syntax for prepared statements it seems they cant be employed to create databases, otherwise something similar to this could have been ok.

SET @s = CONCAT('CREATE DATABASE IF NOT EXISTS ',@database_name);
PREPARE stmt FROM @s;
EXECUTE stmt;

Ideally I would like it as being something I can run from a .sql file from the spend script

#!/bin/bash

MYSQL="mysql"
`${MYSQL} --version >& /dev/null`
if [ $? != 0 ]; then
    MYSQL="mysql5"
    `${MYSQL} --version > /dev/null`
    if [ $? != 0 ]; then
        echo "Can't find mysql binary?"
        exit 1
    fi
fi

 ${MYSQL} -u root --password=###### -e "set @database_name:='ben_search';source CreateSkeleton.sql;"

Any ideas?