MySQL基本命令:
创建一个管理员:
1. grant all on * to baiyangshu identified by '123456' with grant option;
2. revoke all privileges from baiyangshu;
删除用户:
3. delete from mysql.user where user='baiyangshu' and host='localhost;;
flush privileges;
查看所以用户:
4. select host, user from mysql.user;
select user();
查看用户的权限:
show grants for baiyangshu;
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/9474419/viewspace-495533/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/9474419/viewspace-495533/