CREATE DATABASE IF NOT EXISTS cakephp_test ; GRANT ALL ON cakephp_test.* TO 'cakephp_test'@'%' ; CREATE DATABASE IF NOT EXISTS cakephp_test2 ; GRANT ALL ON cakephp_test2.* TO 'cakephp_test'@'%' ; CREATE DATABASE IF NOT EXISTS cakephp_test3 ; GRANT ALL ON cakephp_test3.* TO 'cakephp_test'@'%' ; FLUSH PRIVILEGES ;