grant all privileges on *.* to 'root'@'%' IDENTIFIED BY '000000';
flush privileges;
mysql -h hostname -uroot -D databasename -p
grant all privileges on *.* to 'root'@'%' IDENTIFIED BY '000000';
flush privileges;
mysql -h hostname -uroot -D databasename -p