mysql -u root -p
mysql>CREATE USER 'name'@'%' IDENTIFIED BY 'password';
mysql>GRANT ALL PRIVILEGES ON *.* TO 'name'@'%' WITH GRANT OPTION;