1, open MySQL server
2, enter the system library: use MySQL;
. 3, view the user table: select * from user \ G; (\ G represents a column view, too long a lateral view folded)
Host indicating that the user is only localhost Log on locally
4. create a user may be remote login:
grant all privileges on *.* to root@'%' identified by '123456'
grant: to give permission
. : All rights
root: username
'%' means all IP can log
123456: password
5, test Login