grant all privileges on *.* to 'root'@'%' identified by '設定するパスワード';
grant all privileges on *.* to 'root'@'127.0.0.1' identified by '設定するパスワード';
grant all privileges on *.* to 'root'@'localhost' identified by '設定するパスワード';