可视化 Diff 工具

对比配置文件 左右对比 Diff

贴上你的 config,看看和原始版本有哪些变化。

MariaDB - /etc/mysql/debian-start

Debian 9 (Stretch)

查看原始文件 →

默认配置

Debian 9 (Stretch)
#!/bin/bash # # This script is executed by "/etc/init.d/mysql" on every (re)start. # # Changes to this file will be preserved when updating the Debian package. # # NOTE: This file is read only by the traditional SysV init script, not systemd. # source /usr/share/mysql/debian-start.inc.sh if [ -f /etc/default/mysql ]; then . /etc/default/mysql fi MYSQL="/usr/bin/mysql --defaults-file=/etc/mysql/debian.cnf" MYADMIN="/usr/bin/mysqladmin --defaults-file=/etc/mysql/debian.cnf" MYUPGRADE="/usr/bin/mysql_upgrade --defaults-extra-file=/etc/mysql/debian.cnf" MYCHECK="/usr/bin/mysqlcheck --defaults-file=/etc/mysql/debian.cnf" MYCHECK_SUBJECT="WARNING: mysqlcheck has found corrupt tables" MYCHECK_PARAMS="--all-databases --fast --silent" MYCHECK_RCPT="${MYCHECK_RCPT:-root}" ## Checking for corrupt, not cleanly closed (only for MyISAM and Aria engines) and upgrade needing tables. # The following commands should be run when the server is up but in background # where they do not block the server start and in one shell instance so that # they run sequentially. They are supposed not to echo anything to stdout. # If you want to disable the check for crashed tables comment # "check_for_crashed_tables" out. # (There may be no output to stdout inside the background process!) # Need to ignore SIGHUP, as otherwise a SIGHUP can sometimes abort the upgrade # process in the middle. trap "" SIGHUP ( upgrade_system_tables_if_necessary; check_root_accounts; check_for_crashed_tables; ) >&2 & exit 0

你的配置

已删除 已新增

拖文件到这里,或点击选择

如何使用这个工具

  1. 1 把你的配置文件粘贴或拖拽到上面的区域
  2. 2 Diff 会立刻显示,标出你和默认配置的差异
  3. 3 绿色是你新增的,红色是从默认配置里删掉的
  4. 4 用切换按钮在左右对比和统一 Diff 视图之间切换