3.mysql添加用户,赋予权限 mysql>grant all privileges on *.* to chris@localhost identified by ‘123′; 给本机用户chris分配可对所有数据库的所有表进行所有操作的权限,并设定口令为123。
grant select,insert,update,delete,create,drop on vtdc.employee tosteve @10.0.7.63 identified by ‘123′; 给来自10.0.7.63的用户steve分配可对数据库 vtdc的employee表进行select,insert,update,delete,create,drop等操作的权限,并设定口令为123。