dot_myclirc 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168
  1. # vi: ft=dosini
  2. [main]
  3. # Enables context sensitive auto-completion. If this is disabled the all
  4. # possible completions will be listed.
  5. smart_completion = True
  6. # Multi-line mode allows breaking up the sql statements into multiple lines. If
  7. # this is set to True, then the end of the statements must have a semi-colon.
  8. # If this is set to False then sql statements can't be split into multiple
  9. # lines. End of line (return) is considered as the end of the statement.
  10. multi_line = False
  11. # Destructive warning mode will alert you before executing a sql statement
  12. # that may cause harm to the database such as "drop table", "drop database"
  13. # or "shutdown".
  14. destructive_warning = True
  15. # log_file location.
  16. log_file = ~/.mycli.log
  17. # Default log level. Possible values: "CRITICAL", "ERROR", "WARNING", "INFO"
  18. # and "DEBUG". "NONE" disables logging.
  19. log_level = INFO
  20. # Log every query and its results to a file. Enable this by uncommenting the
  21. # line below.
  22. # audit_log = ~/.mycli-audit.log
  23. # Timing of sql statments and table rendering.
  24. timing = True
  25. # Table format. Possible values: ascii, double, github,
  26. # psql, plain, simple, grid, fancy_grid, pipe, orgtbl, rst, mediawiki, html,
  27. # latex, latex_booktabs, textile, moinmoin, jira, vertical, tsv, csv.
  28. # Recommended: ascii
  29. table_format = ascii
  30. # Syntax coloring style. Possible values (many support the "-dark" suffix):
  31. # manni, igor, xcode, vim, autumn, vs, rrt, native, perldoc, borland, tango, emacs,
  32. # friendly, monokai, paraiso, colorful, murphy, bw, pastie, paraiso, trac, default,
  33. # fruity.
  34. # Screenshots at http://mycli.net/syntax
  35. syntax_style = default
  36. # Keybindings: Possible values: emacs, vi.
  37. # Emacs mode: Ctrl-A is home, Ctrl-E is end. All emacs keybindings are available in the REPL.
  38. # When Vi mode is enabled you can use modal editing features offered by Vi in the REPL.
  39. key_bindings = emacs
  40. # Enabling this option will show the suggestions in a wider menu. Thus more items are suggested.
  41. wider_completion_menu = True
  42. # MySQL prompt
  43. # \D - The full current date
  44. # \d - Database name
  45. # \h - Hostname of the server
  46. # \m - Minutes of the current time
  47. # \n - Newline
  48. # \P - AM/PM
  49. # \p - Port
  50. # \R - The current time, in 24-hour military time (0–23)
  51. # \r - The current time, standard 12-hour time (1–12)
  52. # \s - Seconds of the current time
  53. # \t - Product type (Percona, MySQL, MariaDB)
  54. # \u - Username
  55. prompt = "\t \u@\h:\d> "
  56. prompt_continuation = "-> "
  57. # Skip intro info on startup and outro info on exit
  58. less_chatty = True
  59. # Use alias from --login-path instead of host name in prompt
  60. login_path_as_host = False
  61. # Cause result sets to be displayed vertically if they are too wide for the current window,
  62. # and using normal tabular format otherwise. (This applies to statements terminated by ; or \G.)
  63. auto_vertical_output = False
  64. # keyword casing preference. Possible values "lower", "upper", "auto"
  65. keyword_casing = auto
  66. # disabled pager on startup
  67. enable_pager = True
  68. # Custom colors for the completion menu, toolbar, etc.
  69. [colors]
  70. completion-menu.completion.current = "bg:#ffffff #000000"
  71. completion-menu.completion = "bg:#008888 #ffffff"
  72. completion-menu.meta.completion.current = "bg:#44aaaa #000000"
  73. completion-menu.meta.completion = "bg:#448888 #ffffff"
  74. completion-menu.multi-column-meta = "bg:#aaffff #000000"
  75. scrollbar.arrow = "bg:#003333"
  76. scrollbar = "bg:#00aaaa"
  77. selected = "#ffffff bg:#6666aa"
  78. search = "#ffffff bg:#4444aa"
  79. search.current = "#ffffff bg:#44aa44"
  80. bottom-toolbar = "bg:#222222 #aaaaaa"
  81. bottom-toolbar.off = "bg:#222222 #888888"
  82. bottom-toolbar.on = "bg:#222222 #ffffff"
  83. search-toolbar = noinherit bold
  84. search-toolbar.text = nobold
  85. system-toolbar = noinherit bold
  86. arg-toolbar = noinherit bold
  87. arg-toolbar.text = nobold
  88. bottom-toolbar.transaction.valid = "bg:#222222 #00ff5f bold"
  89. bottom-toolbar.transaction.failed = "bg:#222222 #ff005f bold"
  90. # style classes for colored table output
  91. output.header = "#00ff5f bold"
  92. output.odd-row = ""
  93. output.even-row = ""
  94. # Favorite queries.
  95. [favorite_queries]
  96. ps = "SELECT ID,USER,HOST,DB,COMMAND,TIME,STATE,TIME_MS,STAGE,MAX_STAGE FROM INFORMATION_SCHEMA.PROCESSLIST ORDER BY Time DESC"
  97. wc = "SELECT USER, count(*) FROM INFORMATION_SCHEMA.PROCESSLIST GROUP BY USER ORDER BY count(*) DESC LIMIT 10"
  98. info = "SELECT INFO FROM INFORMATION_SCHEMA.PROCESSLIST WHERE ID='$1'"
  99. info-all = "SELECT ID,TIME,INFO FROM INFORMATION_SCHEMA.PROCESSLIST WHERE INFO IS NOT NULL ORDER BY Time DESC"
  100. kill = "SELECT GROUP_CONCAT(CONCAT('KILL ',id,';') SEPARATOR ';') FROM information_schema.processlist WHERE user='$1'"
  101. schema = "SELECT * FROM information_schema.columns WHERE TABLE_SCHEMA='$1' ORDER BY table_name,ordinal_position"
  102. hostname = SHOW VARIABLES WHERE Variable_name = 'hostname'
  103. config = SHOW VARIABLES
  104. connections-current-show = show status where `variable_name` = 'Threads_connected'
  105. connections-max-show = show variables like 'max_connections'
  106. connections-max-set-1000 = set global max_connections=1000
  107. connections-max-set-default = set global max_connections=500
  108. version = SHOW VARIABLES LIKE "%version%"
  109. statistics = SELECT * FROM `mysql`.`user` u JOIN `INFORMATION_SCHEMA`.`USER_STATISTICS` s ON u.User=s.USER JOIN `mysql_restrict`.`USER_STATISTICS` ss ON s.USER=ss.USER JOIN `mysql_restrict`.`CPU_RESTRICT` r ON r.USER=ss.USER
  110. # Use the -d option to reference a DSN.
  111. [alias_dsn]
  112. web15 = mysql://root@web15.intr
  113. web16 = mysql://root@web16.intr
  114. web17 = mysql://root@web17.intr
  115. web18 = mysql://root@web18.intr
  116. web19 = mysql://root@web19.intr
  117. web20 = mysql://root@web20.intr
  118. web21 = mysql://root@web21.intr
  119. web22 = mysql://root@web22.intr
  120. web23 = mysql://root@web23.intr
  121. web24 = mysql://root@web24.intr
  122. web25 = mysql://root@web25.intr
  123. web26 = mysql://root@web26.intr
  124. web27 = mysql://root@web27.intr
  125. web28 = mysql://root@web28.intr
  126. web29 = mysql://root@web29.intr
  127. web30 = mysql://root@web30.intr
  128. web31 = mysql://root@web31.intr
  129. web32 = mysql://root@web32.intr
  130. web33 = mysql://root@web33.intr
  131. web34 = mysql://root@web34.intr
  132. web35 = mysql://root@web35.intr
  133. web36 = mysql://root@web36.intr
  134. web37 = mysql://root@web37.intr
  135. billing = mysql://root@staff.intr/billing
  136. BillingDB = mysql://root@staff.intr/BillingDB
  137. majordomo = mysql://majordomo@maxscale.intr/majordomo
  138. maxscale = mysql://root@maxscale.intr/
  139. staff = mysql://root@staff.intr
  140. galera3 = mysql://root@galera3.intr
  141. galera2 = mysql://root@galera2.intr
  142. galera1 = mysql://root@galera1.intr
  143. pdns = mysql://pdns@ns1-dh.intr/registrant
  144. kvm37 = mysql://root@kvm37/registrant
  145. billing-dev = mysql://xmlrpc@dev.majordomo.ru/billing
  146. malscan = mysql://malscan@malscan.intr/malscan