建立授权grant all privileges on exeup.*to john@192.168.1.111 identified by "123456";
其中exeup 为数据库名,后面的*代表此数据库下的全部表,john代表用户名,@后的代表地址 123456代表密码
取消授权revoke all privileges on exeup.* from ted@192.168.1.108;
删除用户 drop USER 'ted'@'192.168.1.111';
建立授权grant all privileges on exeup.*to john@192.168.1.111 identified by "123456";
其中exeup 为数据库名,后面的*代表此数据库下的全部表,john代表用户名,@后的代表地址 123456代表密码
取消授权revoke all privileges on exeup.* from ted@192.168.1.108;
删除用户 drop USER 'ted'@'192.168.1.111';