1、用户账号管理 //对密码进行明文加密设置 ->select password(456); //能够得到对应的散列值 ->create user 'zhangsan'@'localhost' identified by'123', ->'lisi'@'localhost' identified by password ->'*531E182E272080AB0740FE2F2D689DBE0156E04'; //创建了两个账号,一个zhangsan密码为123,一个lisi,密码为456 ->drop user zhangshan@localhost; //删除张三的账号 ->rename user 'lisi'@'localhost' to 'wangwu 2、grant权限 实例:授予用户zhangsan在数据库mysql_test的表customers上拥有对列cust_id和列cust_name的select权限 ->grant select(cust_id,cust_name) ->on mysql_test.customers ->to'zhangsan'@'localhost'; 实例:授予当前系统中一个不存在的用户liming和用户huang,要求创建这两个用户,并设置对应的系统 登录口令,同时授予他们在数据库mysql