mysql> grant all on *.* to 'root'@'192.168.80.1' identified by '123456';
4.使用Navicat for MySQL远程连接IP为192.168.80.128的数据库
创建数据库db_new并新建表user
查看创建数据库db_new表user
mysql> use db_new
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A
Database changed
mysql>select * from user;
+----+------+----------+
|id| user | password |
+----+------+----------+
| 1 | root | 123456 || 2 | tom | 12345678 |
+----+------+----------+
2 rows inset(0.00 sec)