CREATE USER IF NOT EXISTS 'testdbuser'@'localhost';
ALTER USER 'testdbuser'@'localhost' IDENTIFIED BY 'testdbpass';
GRANT ALL PRIVILEGES ON `testdbname`.* TO 'testdbuser'@'localhost';
FLUSH PRIVILEGES;
