# mysql mysql> grant all privileges on *.* to 'root'@'%' identified by '123456'; mysql> flush privileges; mysql> exit