create database trans; use mysql; grant all privileges on trans.* to 'm'@'localhost' identified by 'mmm' with grant option; grant all privileges on trans.* to 'm'@'%' identified by 'mmm' with grant option; FLUSH PRIVILEGES;