insert into mysql.user(Host,User,Password,ssl_cipher,x509_issuer,x509_subject) values("localhost","test",password("123456"),‘‘,‘‘,‘‘);
grant all privileges on mydays.* to test@192.168.1.102 identified by ‘1234‘;
mysql -h192.168.1.102 -utest -p‘1234‘
Type ‘help;‘ or ‘\h‘ for help. Type ‘\c‘ to clear the current input statement.
mysql> show databases;
+--------------------+
| Database |
+--------------------+
| information_schema |
| mydays |
| test |
+--------------------+
3 rows in set (0.01 sec)