The first step in landing mysql:
mysql-u user name database IP -p -h database
When prompted, enter the database password
Step two:
GRANT ALL PRIVILEGES ON *.* TO '自定义用户名'@'%' IDENTIFIED BY '自定义密码' WITH GRANT OPTION;
flush privileges;
The third step is to view the data:
SELECT DISTINCT CONCAT('User: ''',user,'''@''',host,''';') AS query FROM mysql.user;
the fourth step:
You can use a local database administration tool, and my mac pro, tools are as follows: