1 Log Database
mysql -u root -p
2 use mysql;
3 select User, authentication_string, Host from user (user query table)
4 GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY '123456'
5 flush privileges; (with immediate effect) 6 select User, authentication_string, Host from user (again, see the user table)