create database xxx character set utf8 collate utf8_bin; grant all privileges on xxx.* to 'xxx'@'%' identified by 'pass' with grant option; grant all privileges on xxx.* to 'xxx'@'127.0.0.1' identified by 'pass' with grant option; grant all privileges on xxx.* to 'xxx'@'localhost' identified by 'pass' with grant option; grant all privileges on xxx.* to 'xxx'@'hostname' identified by 'pass' with grant option;
grant select on mysql.proc to xxx;
grant show databases on *.* to xxx;