1.Mysql授权用户
a) 授权全部权限,并制定可以访问的ip地址,用户名、密码
i. Grant all privilegs on *.* to ‘用户名’@‘ip地址’ identified by ‘密码’
b) 授权数据库test库全部表权限、数据表
i. Grant all privilegs on test.* to ‘用户名’@‘ip地址’ identified by ‘密码’
c) 授权多个库
i. Grant all privilegs on tb1.* to‘用户名’@‘ip地址’
ii. Grant all privilegs on tb2.* to‘用户名’@‘ip地址’