I want to execute a CREATE USER statement, but only when the user doesn\'t already exist. What would be the best way of doing this?
CREATE USER
You can select from the "user" table on the default mysql database. Like this:
select * from user where User = 'username'
If no results are returned, create a new user.