zoukankan      html  css  js  c++  java
  • mysqldump账户需要什么权限?

    【mysqldump所需权限】

    mysql> create user dumper@'%';
    mysql> grant select on *.* to dumper@'%';
    mysql> grant show view on *.* to dumper@'%';
    mysql> grant lock tables on *.* to dumper@'%';
    mysql> grant trigger on *.* to dumper@'%';
    mysql> grant process on *.* to dumper@'%';
    mysql> grant event on *.* to dumper@'%';
    mysql> grant reload on *.* to dumper@'%';
    mysql> grant replication client on *.* to dumper@'%';

    【最佳实践】

    create user dumper@'10.192.4.6' identified by 'ask.9_1bn;qqq=;u';
    grant select,trigger,show view,lock tables,process,event,reload,replication client on *.* to dumper@'10.192.4.6';

     备份表结构:

    #备份表结构:
    mysqldump -udumper -p'ask.9_1bn;qqq=;u' -h 10.192.4.8 --set-gtid-purged=OFF --single-transaction --master-data=2 --triggers --routines --events --max_allowed_packet=67108864 -d -B test >  test_nodata_`date +%Y%m%d`.sql
  • 相关阅读:
    基督山伯爵---大仲马
    数据结构
    11. 标准库浏览 – Part II
    python 标准库
    Python 官方文件
    Python 函数
    学员名片管理系统
    如何进入多级菜单
    Python 文件操作
    Python 字符串 (isdigit, isalnum,isnumeric)转
  • 原文地址:https://www.cnblogs.com/gered/p/15073748.html
Copyright © 2011-2022 走看看