CREATE DATABASE asyd; INSERT INTO user (Host, User, Password) VALUES('%', '<user>', PASSWORD('<pass>')); GRANT ALL PRIVILEGES ON <base>.* to <user>@'%'; FLUSH PRIVILEGES;