mysql -u root -p
mysql> GRANT ALL ON *.* TO root@'hostname' IDENTIFIED BY 'password';
mysql> flush privileges;
Δ