[root\@master \~]\# mysql -u root
mysql \> use mysql;
mysql \> update user set password=password(' your password ') where user='root';
mysql\> grant all privileges on \*.\* to root\@"%" identified by "your
password";
Query OK, 0 rows affected (0.00 sec)
mysql\> flush privileges;
CREATE DATABASE IF NOT EXISTS yourdbname DEFAULT CHARSET utf8 COLLATE utf8_general_ci;