データベース作成
CREATE DATABASE test; GRANT ALL PRIVILEGES ON test.* TO user IDENTIFIED BY 'pass'; GRANT ALL PRIVILEGES ON test.* TO user@localhost IDENTIFIED BY 'pass'; FLUSH PRIVILEGES;
データベース削除
DROP DATABASE test; REVOKE ALL PRIVILEGES ON test.* FROM user; REVOKE ALL PRIVILEGES ON test.* FROM user@localhost; DELETE FROM mysql.user WHERE user='test'; FLUSH PRIVILEGES;
ユーザを残すときはDELETEしない