pt-show-grants-飞外
DELETE FROM `mysql`.`user` WHERE `User`='pt' AND `Host`='%';--flush Add FLUSH PRIVILEGES after output在输出最后一行加了如下一行命令:FLUSH PRIVILEGES;--[no]header Print dump header (default yes)--help Show help and exit--host=s -h Connect to host--ignore=a Ignore this comma-separated list of users【不起作用??】参数必须是'root'@'localhost',而不是root--only=a Only show grants for this comma-separated list of users只显示的用户--password=s -p Password to use when connecting--pid=s Create the given PID file--port=i -P Port number to use for connection--revoke Add REVOKE statements for each GRANT statement是REVOKE形式,与drop不同,其是delete--separate List each GRANT or REVOKE separately--set-vars=s Set these MySQL variables (default wait_timeout=10000)用法:--set-vars wait_timeout=100--socket=s -S Socket file to use for connection--[no]timestamp Add timestamp to the dump header (default yes)是否添加时间戳--user=s -u User for login if not current user--version Show version and exit选项类型:Option types: s=string, i=integer, f=float, h/H/a/A=comma-separated list, d=DSN, z=size, m=times表示stringi表示整数f表示浮点数h/H/a/A 表是逗号分隔型取值格式d表示DSNz表示大小m表示time参数的默认值:参数的默认值使用PTDEBUG可以将debug信息打印到STDERR,也可以重定向到文件中
热门阅读
- 龙门古镇在哪里 0人看过
- 鸡蛋里面白色的东西是什么 0人看过
- 金桔核能吃吗 0人看过
- 生姜从地里挖出来后如何储存 0人看过
- 生蚝怎么存放过夜不死 0人看过
- 豆腐长黑毛还可以吃吗? 0人看过
- 3077代表什么 0人看过
- 茶里有咖啡因吗 0人看过
- 车厘子冷藏能放多久 0人看过
- 冬天水管子冻了怎么办 0人看过