Compare commits
No commits in common. "master" and "gh-pages" have entirely different histories.
1116 changed files with 647 additions and 22839 deletions
|
@ -1,6 +0,0 @@
|
|||
*.md
|
||||
build/**
|
||||
Makefile
|
||||
.perltidy
|
||||
*.json
|
||||
*.png
|
74
.github/workflows/generate_mariadb_examples.yml
vendored
74
.github/workflows/generate_mariadb_examples.yml
vendored
|
@ -1,74 +0,0 @@
|
|||
# This is a basic workflow to help you get started with Actions
|
||||
|
||||
name: Compile MT examples for MariaDB
|
||||
|
||||
# Controls when the workflow will run
|
||||
on:
|
||||
# Allows you to run this workflow manually from the Actions tab
|
||||
workflow_dispatch:
|
||||
|
||||
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
|
||||
jobs:
|
||||
mysql_examples:
|
||||
# This workflow contains a single job called "build"
|
||||
strategy:
|
||||
matrix:
|
||||
MARIADB_VERSION: [10.2, 10.3, 10.4, 10.5, 10.6, 10.7, 10.8, 10.9]
|
||||
# The type of runner that the job will run on
|
||||
runs-on: ubuntu-latest
|
||||
# Steps represent a sequence of tasks that will be executed as part of the job
|
||||
steps:
|
||||
- name: Setup MySQL Tuner repository
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Set up MySQL
|
||||
uses: shogo82148/actions-setup-mysql@v1
|
||||
with:
|
||||
distribution: 'mariadb'
|
||||
root-password: "root"
|
||||
mysql-version: "${{ matrix.MARIADB_VERSION }}"
|
||||
|
||||
- name: Injecting credentials
|
||||
run: |
|
||||
echo -e "[client]\nuser=root\npassword=root\nhost=127.0.0.1\nprotocol=TCP" > $HOME/.my.cnf
|
||||
|
||||
- name: Cloning test_db dataset
|
||||
run: |
|
||||
git clone https://github.com/datacharmer/test_db.git
|
||||
|
||||
- name: Test database is Up and Running
|
||||
run: |
|
||||
sleep 5s
|
||||
sudo netstat -ltpn
|
||||
mysql -e 'select version();'
|
||||
|
||||
- name: Injecting test_db dataset
|
||||
run: |
|
||||
cd test_db
|
||||
mysql -e 'CREATE DATABASE data;'
|
||||
mysql data< ./employees.sql
|
||||
cd -
|
||||
rm -rf test_db
|
||||
# Runs a single command using the runners shell
|
||||
- name: Json Run verbose mode with dumpdir result
|
||||
run: |
|
||||
mkdir -p ./examples/github/result/mariadb/${{ matrix.MARIADB_VERSION }}
|
||||
sudo perl ./mysqltuner.pl --user=root --pass=root --protocol tcp --verbose --dumpdir=./examples/github/result/mariadb/${{ matrix.MARIADB_VERSION }} --json | tee -a ./examples/github/result/mariadb/${{ matrix.MARIADB_VERSION }}/result.json
|
||||
|
||||
- name: Standard Run verbose mode without dumpdir result
|
||||
run: |
|
||||
sudo perl ./mysqltuner.pl --user=root --pass=root --protocol tcp --verbose | tee -a ./examples/github/result/mariadb/${{ matrix.MARIADB_VERSION }}/result.txt
|
||||
|
||||
- name: Adding examples to Git
|
||||
run: |
|
||||
git add ./examples/github/result/mariadb/${{ matrix.MARIADB_VERSION }}/* || true
|
||||
|
||||
- name: Run the Action Commit
|
||||
uses: devops-infra/action-commit-push@master
|
||||
with:
|
||||
github_token: "${{ secrets.GITHUB_TOKEN }}"
|
||||
add_timestamp: true
|
||||
commit_prefix: "[AUTO]"
|
||||
commit_message: "Updates MariaDb result examples (via Actions)"
|
||||
force: false
|
||||
target_branch: examples-mariadb-${{ matrix.MARIADB_VERSION }}
|
74
.github/workflows/generate_mysql_examples.yml
vendored
74
.github/workflows/generate_mysql_examples.yml
vendored
|
@ -1,74 +0,0 @@
|
|||
# This is a basic workflow to help you get started with Actions
|
||||
|
||||
name: Compile MT examples For MySQL
|
||||
|
||||
# Controls when the workflow will run
|
||||
on:
|
||||
# Allows you to run this workflow manually from the Actions tab
|
||||
workflow_dispatch:
|
||||
|
||||
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
|
||||
jobs:
|
||||
mysql_examples:
|
||||
# This workflow contains a single job called "build"
|
||||
strategy:
|
||||
matrix:
|
||||
MYSQL_VERSION: [5.6, 5.7, 8.0]
|
||||
# The type of runner that the job will run on
|
||||
runs-on: ubuntu-latest
|
||||
# Steps represent a sequence of tasks that will be executed as part of the job
|
||||
steps:
|
||||
- name: Setup MySQL Tuner repository
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Set up MySQL
|
||||
uses: shogo82148/actions-setup-mysql@v1
|
||||
with:
|
||||
distribution: 'mysql'
|
||||
root-password: "root"
|
||||
mysql-version: "${{ matrix.MYSQL_VERSION }}"
|
||||
|
||||
- name: Injecting credentials
|
||||
run: |
|
||||
echo -e "[client]\nuser=root\npassword=root\nhost=127.0.0.1\nprotocol=TCP" > $HOME/.my.cnf
|
||||
|
||||
- name: Cloning test_db dataset
|
||||
run: |
|
||||
git clone https://github.com/datacharmer/test_db.git
|
||||
|
||||
- name: Test database is Up and Running
|
||||
run: |
|
||||
sleep 5s
|
||||
sudo netstat -ltpn
|
||||
mysql -e 'select version();'
|
||||
|
||||
- name: Injecting test_db dataset
|
||||
run: |
|
||||
cd test_db
|
||||
mysql -e 'CREATE DATABASE data;'
|
||||
mysql data< ./employees.sql
|
||||
cd -
|
||||
rm -rf test_db
|
||||
# Runs a single command using the runners shell
|
||||
- name: Json Run verbose mode with dumpdir result
|
||||
run: |
|
||||
mkdir -p ./examples/github/result/mysql/${{ matrix.MYSQL_VERSION }}
|
||||
sudo perl ./mysqltuner.pl --user=root --pass=root --protocol tcp --verbose --dumpdir=./examples/github/result/mysql/${{ matrix.MYSQL_VERSION }} --json | tee -a ./examples/github/result/mysql/${{ matrix.MYSQL_VERSION }}/result.json
|
||||
|
||||
- name: Standard Run verbose mode without dumpdir result
|
||||
run: |
|
||||
sudo perl ./mysqltuner.pl --user=root --pass=root --protocol tcp --verbose | tee -a ./examples/github/result/mysql/${{ matrix.MYSQL_VERSION }}/result.txt
|
||||
|
||||
- name: Adding examples to Git
|
||||
run: |
|
||||
git add ./examples/github/result/mysql/${{ matrix.MYSQL_VERSION }}/* || true
|
||||
|
||||
- name: Run the Action Commit
|
||||
uses: devops-infra/action-commit-push@master
|
||||
with:
|
||||
github_token: "${{ secrets.GITHUB_TOKEN }}"
|
||||
add_timestamp: true
|
||||
commit_prefix: "[AUTO]"
|
||||
commit_message: "Updates MySQL result examples (via Actions)"
|
||||
force: false
|
||||
target_branch: examples-mysql-${{ matrix.MYSQL_VERSION }}
|
41
.github/workflows/publish_release.yml
vendored
41
.github/workflows/publish_release.yml
vendored
|
@ -1,41 +0,0 @@
|
|||
on:
|
||||
push:
|
||||
# Sequence of patterns matched against refs/tags
|
||||
tags:
|
||||
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10
|
||||
|
||||
name: Create Release
|
||||
|
||||
jobs:
|
||||
build:
|
||||
name: Create Release
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
- name: Create release
|
||||
id: create_release
|
||||
uses: actions/create-release@v1
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
|
||||
with:
|
||||
tag_name: ${{ github.ref }}
|
||||
release_name: Release ${{ github.ref }}
|
||||
body: |
|
||||
Changes in this Release:
|
||||
Please consult commit log and issue tracker on Github for more information.
|
||||
draft: true
|
||||
prerelease: false
|
||||
- name: Upload release asset
|
||||
uses: actions/upload-release-asset@v1
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
with:
|
||||
upload_url: ${{ steps.create_release.outputs.upload_url }}
|
||||
asset_content_type: application/zip
|
||||
- name: Publish release
|
||||
uses: StuYarrow/publish-release@v1.1.2
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
with:
|
||||
id: ${{ steps.create_release.outputs.id }}
|
77
.github/workflows/pull_request.yml
vendored
77
.github/workflows/pull_request.yml
vendored
|
@ -1,77 +0,0 @@
|
|||
# This is a basic workflow to help you get started with Actions
|
||||
|
||||
name: CI for MySQL Tuner for MySQL 5.7 and 8.0
|
||||
|
||||
# Controls when the workflow will run
|
||||
on:
|
||||
# Triggers the workflow on push or pull request events but only for the master branch
|
||||
push:
|
||||
branches: [ master ]
|
||||
pull_request:
|
||||
branches: [ master ]
|
||||
|
||||
# Allows you to run this workflow manually from the Actions tab
|
||||
workflow_dispatch:
|
||||
|
||||
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
|
||||
jobs:
|
||||
# This workflow contains a single job called "build"
|
||||
test_help:
|
||||
strategy:
|
||||
matrix:
|
||||
MYSQL_VERSION: [5.7, 8.0]
|
||||
# The type of runner that the job will run on
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
# Steps represent a sequence of tasks that will be executed as part of the job
|
||||
steps:
|
||||
- name: Setup MySQL Tuner repository
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Set up MySQL
|
||||
uses: mirromutth/mysql-action@v1.1
|
||||
with:
|
||||
mysql root password: "root"
|
||||
mysql version: "${{ matrix.MYSQL_VERSION }}"
|
||||
|
||||
- name: Injecting credentials
|
||||
run: |
|
||||
echo -e "[client]\nuser=root\npassword=root\nhost=127.0.0.1\nprotocol=TCP" > $HOME/.my.cnf
|
||||
|
||||
- name: waiting database
|
||||
run: |
|
||||
sleep 20s
|
||||
|
||||
- name: Run help mode
|
||||
run: |
|
||||
sudo perl ./mysqltuner.pl --help
|
||||
|
||||
test_with_empty_db:
|
||||
needs: test_help
|
||||
strategy:
|
||||
matrix:
|
||||
MYSQL_VERSION: [5.7, 8.0]
|
||||
# The type of runner that the job will run on
|
||||
runs-on: ubuntu-latest
|
||||
# Steps represent a sequence of tasks that will be executed as part of the job
|
||||
steps:
|
||||
- name: Setup MySQL Tuner repository
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Set up MySQL
|
||||
uses: mirromutth/mysql-action@v1.1
|
||||
with:
|
||||
mysql root password: "root"
|
||||
mysql version: "${{ matrix.MYSQL_VERSION }}"
|
||||
|
||||
- name: Injecting credentials
|
||||
run: |
|
||||
echo -e "[client]\nuser=root\npassword=root\nhost=127.0.0.1\nprotocol=TCP" > $HOME/.my.cnf
|
||||
|
||||
- name: waiting database
|
||||
run: |
|
||||
sleep 20s
|
||||
|
||||
# Runs a single command using the runners shell
|
||||
- name: Run verbose mode
|
||||
run: sudo perl ./mysqltuner.pl --user=root --pass=root --protocol tcp --verbose
|
56
.github/workflows/run_mt_with_db.yml
vendored
56
.github/workflows/run_mt_with_db.yml
vendored
|
@ -1,56 +0,0 @@
|
|||
# This is a basic workflow to help you get started with Actions
|
||||
|
||||
name: Test with databases
|
||||
|
||||
# Controls when the workflow will run
|
||||
on:
|
||||
# Allows you to run this workflow manually from the Actions tab
|
||||
workflow_dispatch:
|
||||
|
||||
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
|
||||
jobs:
|
||||
# This workflow contains a single job called "build"
|
||||
run_mt_with_db:
|
||||
strategy:
|
||||
matrix:
|
||||
MYSQL_VERSION: [5.7, 8.0]
|
||||
# The type of runner that the job will run on
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
# Steps represent a sequence of tasks that will be executed as part of the job
|
||||
steps:
|
||||
- name: Setup MySQL Tuner repository
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Set up MySQL
|
||||
uses: mirromutth/mysql-action@v1.1
|
||||
with:
|
||||
mysql root password: "root"
|
||||
mysql version: "${{ matrix.MYSQL_VERSION }}"
|
||||
|
||||
- name: Injecting credentials
|
||||
run: |
|
||||
echo -e "[client]\nuser=root\npassword=root\nhost=127.0.0.1\nprotocol=TCP" > $HOME/.my.cnf
|
||||
|
||||
- name: Cloning test_db dataset
|
||||
run: |
|
||||
git clone https://github.com/datacharmer/test_db.git
|
||||
|
||||
- name: Injecting test_db dataset
|
||||
run: |
|
||||
sleep 5s
|
||||
cd test_db
|
||||
netstat -ltpn
|
||||
mysql -e 'select version();'
|
||||
mysql -e 'CREATE DATABASE data;'
|
||||
mysql data< ./employees.sql
|
||||
cd -
|
||||
rm -rf test_db
|
||||
|
||||
# Runs a single command using the runners shell
|
||||
- name: Run help mode
|
||||
run: perl ./mysqltuner.pl --help
|
||||
|
||||
# Runs a single command using the runners shell
|
||||
- name: Run verbose mode
|
||||
run: sudo perl ./mysqltuner.pl --user=root --pass=root --protocol tcp --verbose
|
48
.github/workflows/update_cve_and_docs.yml
vendored
48
.github/workflows/update_cve_and_docs.yml
vendored
|
@ -1,48 +0,0 @@
|
|||
# This is a basic workflow to help you get started with Actions
|
||||
|
||||
name: CVE and Docs update
|
||||
|
||||
# Controls when the workflow will run
|
||||
on:
|
||||
# Scheudle every sunday at 00:00
|
||||
#schedule:
|
||||
# - cron: '0 0 * * 0'
|
||||
|
||||
# Allows you to run this workflow manually from the Actions tab
|
||||
workflow_dispatch:
|
||||
|
||||
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
|
||||
jobs:
|
||||
# This workflow contains a single job called "build"
|
||||
build:
|
||||
# The type of runner that the job will run on
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
# Steps represent a sequence of tasks that will be executed as part of the job
|
||||
steps:
|
||||
- name: Setup MySQL Tuner repository
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
pwd
|
||||
cd build
|
||||
pwd
|
||||
sudo bash ./installStaff.sh
|
||||
|
||||
- name: Update CVE and docs
|
||||
run: |
|
||||
pwd
|
||||
cd ./build
|
||||
pwd
|
||||
sudo bash ./updateStaff.sh
|
||||
|
||||
- name: Run the Action
|
||||
uses: devops-infra/action-commit-push@master
|
||||
with:
|
||||
github_token: "${{ secrets.GITHUB_TOKEN }}"
|
||||
add_timestamp: true
|
||||
commit_prefix: "[AUTO]"
|
||||
commit_message: "Updates CVE and docs (via Actions)"
|
||||
force: false
|
||||
target_branch: "cve-docs"
|
22
.gitignore
vendored
22
.gitignore
vendored
|
@ -1,22 +0,0 @@
|
|||
build/mysqltuner-*
|
||||
build/mysqltuner.spec
|
||||
build/build.log
|
||||
build/cve*
|
||||
build/vulnerabilities*
|
||||
*.bak
|
||||
Vagrant/Vagrantfile
|
||||
Vagrant/data
|
||||
Vagrant/.vagrant
|
||||
contents
|
||||
contents/*
|
||||
reports_*
|
||||
golang/prog-*
|
||||
.vscode
|
||||
test_db/**
|
||||
result*
|
||||
result_*
|
||||
sql/*.sql
|
||||
sql/*.csv
|
||||
cve.csv
|
||||
default*.cnf
|
||||
.env
|
19
.perltidy
19
.perltidy
|
@ -1,19 +0,0 @@
|
|||
--backup-and-modify-in-place
|
||||
--backup-file-extension=beforeTidy
|
||||
--block-brace-tightness=2
|
||||
--brace-tightness=2
|
||||
--closing-token-indentation=1
|
||||
--continuation-indentation=4
|
||||
--indent-columns=4
|
||||
--maximum-line-length=134
|
||||
--cuddled-else
|
||||
--opening-sub-brace-on-new-line
|
||||
--noopening-brace-on-new-line
|
||||
--nooutdent-labels
|
||||
--paren-tightness=2
|
||||
--square-bracket-tightness=2
|
||||
--vertical-tightness=0
|
||||
--vertical-tightness-closing=0
|
||||
--break-at-old-comma-breakpoints
|
||||
--entab-leading-whitespace=4
|
||||
--tabs
|
1
CNAME
Normal file
1
CNAME
Normal file
|
@ -0,0 +1 @@
|
|||
mysqltuner.com
|
|
@ -1,14 +0,0 @@
|
|||
# Contributor Code of Conduct
|
||||
|
||||
As contributors and maintainers of this project, we pledge to respect all people who contribute through reporting issues, posting feature requests, updating documentation, submitting pull requests or patches, and other activities.
|
||||
|
||||
We are committed to making participation in this project a harassment-free experience for everyone, regardless of level of experience, gender, gender identity and expression, sexual orientation, disability, personal appearance, body size, race, age, or religion.
|
||||
|
||||
Examples of unacceptable behavior by participants include the use of sexual language or imagery, derogatory comments or personal attacks, trolling, public or private harassment, insults, or other unprofessional conduct.
|
||||
|
||||
Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct. Project maintainers who do not follow the Code of Conduct may be removed from the project team.
|
||||
|
||||
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by opening an issue or contacting one or more of the project maintainers.
|
||||
|
||||
This Code of Conduct is adapted from the [Contributor Covenant](http:contributor-covenant.org), version 1.0.0, available at [http://contributor-covenant.org/version/1/0/0/](http://contributor-covenant.org/version/1/0/0/)
|
||||
|
192
CONTRIBUTING.md
192
CONTRIBUTING.md
|
@ -1,192 +0,0 @@
|
|||
# Contributing to this project
|
||||
|
||||
Please take a moment to review this document in order to make the contribution
|
||||
process easy and effective for everyone involved.
|
||||
|
||||
Following these guidelines will help us get back to you more quickly, and will
|
||||
show that you care about making MySQLTuner better just like we do. In return, we'll
|
||||
do our best to respond to your issue or pull request as soon as possible with
|
||||
the same respect.
|
||||
|
||||
_**Please Note:** These guidelines are adapted from [@necolas](https://github.com/necolas)'s
|
||||
[issue-guidelines](https://github.com/necolas/issue-guidelines) and serve as
|
||||
an excellent starting point for contributing to any open source project._
|
||||
|
||||
|
||||
## Using the issue tracker
|
||||
|
||||
The [issue tracker](https://github.com/major/MySQLTuner-perl/issues) is the
|
||||
preferred channel for [bug reports](#bugs), [features requests](#features)
|
||||
and [submitting pull requests](#pull-requests), but please respect the
|
||||
following restrictions:
|
||||
|
||||
* Support issues or usage question that are not bugs should be posted on
|
||||
[Stack Overflow, using the `mysqltuner`](http://stackoverflow.com/questions/tagged/mysqltuner) tag.
|
||||
|
||||
* Please **do not** derail or troll issues. Keep the discussion on topic and
|
||||
respect the opinions of others.
|
||||
|
||||
|
||||
## Before submitting an issue
|
||||
|
||||
1. Upgrade to the latest version of MySQLTuner and see if the problem remains
|
||||
|
||||
2. Look at the [closed issues](https://github.com/major/mysqltuner-perl/issues?state=closed), we may have already answered a similar problem.
|
||||
|
||||
3. Post new features or bugs you have found at [Issue tracker](https://github.com/major/mysqltuner-perl/issues)
|
||||
|
||||
4. [Read the doc](https://github.com/major/mysqltuner-perl/). It is short and useful.
|
||||
|
||||
5. [Read the internal doc](https://github.com/major/MySQLTuner-perl/blob/master/INTERNALS.md). It is a complete and detailed documentation of all checks performed by this tool and this organization.
|
||||
|
||||
<a name="bugs"></a>
|
||||
## Bug reports
|
||||
|
||||
A bug is a _demonstrable problem_ that is caused by the code in the repository.
|
||||
Good bug reports are extremely helpful — thank you!
|
||||
|
||||
Guidelines for bug reports:
|
||||
|
||||
1. **Use the [GitHub issue search]** — check if the issue has already been
|
||||
reported.
|
||||
|
||||
2. **Check if the bug has already been fixed** — try to reproduce it using the
|
||||
repository's latest `master` changes.
|
||||
|
||||
3. **Isolate the problem** — ideally create a [reduced test
|
||||
case](http://css-tricks.com/6263-reduced-test-cases/) and a live example
|
||||
(perhaps a [fiddle](http://jsfiddle.net)).
|
||||
|
||||
A good bug report shouldn't leave others needing to contact you for more
|
||||
information. Please try to be as detailed as possible in your report. What is
|
||||
your environment? What steps will reproduce the issue? What browser(s) and OS
|
||||
experience the problem? What outcome did you expect, and how did it differ from
|
||||
what you actually saw? All these details will help people to fix any potential
|
||||
bugs.
|
||||
|
||||
Example:
|
||||
|
||||
> Short and descriptive example bug report title
|
||||
>
|
||||
> A summary of the issue and the browser/OS environment in which it occurs. If
|
||||
> suitable, include the steps required to reproduce the bug.
|
||||
>
|
||||
> 1. This is the first step
|
||||
> 2. This is the second step
|
||||
> 3. Further steps, etc.
|
||||
>
|
||||
> `<url>` - a link to the reduced test case
|
||||
>
|
||||
> Any other information you want to share that is relevant to the issue being
|
||||
> reported. This might include the lines of code that you have identified as
|
||||
> causing the bug, and potential solutions (and your opinions on their
|
||||
> merits).
|
||||
|
||||
**Note:** In an effort to keep open issues to a manageable number, we will close any issues
|
||||
that do not provide enough information for us to be able to work on a solution.
|
||||
You will be encouraged to provide the necessary details, after which we will reopen the issue.
|
||||
|
||||
<a name="features"></a>
|
||||
## Feature requests
|
||||
|
||||
Feature requests are welcome. But take a moment to find out whether your idea
|
||||
fits with the scope and aims of the project. It's up to *you* to make a strong
|
||||
case to convince the project's developers of the merits of this feature. Please
|
||||
provide as much detail and context as possible.
|
||||
|
||||
Building something great means choosing features carefully especially because it
|
||||
is much, much easier to add features than it is to take them away. Additions
|
||||
to MySQLTuner will be evaluated on a combination of scope (how well it fits into the
|
||||
project), maintenance burden and general usefulness.
|
||||
|
||||
Creating something great often means saying no to seemingly good ideas. Don't
|
||||
despair if your feature request isn't accepted, take action! Fork the
|
||||
repository, build your idea and share it with others. We released MySQLTuner under
|
||||
the MIT License for this purpose precisely. Open source works best when smart
|
||||
and dedicated people riff off of each others' ideas to make even greater things.
|
||||
|
||||
## New feature request
|
||||
You can find Enhancement asked by community at [Enhancement issue]
|
||||
|
||||
<a name="pull-requests"></a>
|
||||
## Pull requests
|
||||
|
||||
Good pull requests — patches, improvements, new features — are a fantastic help.
|
||||
They should remain focused in scope and avoid containing unrelated commits.
|
||||
|
||||
**Please ask first** before embarking on any significant pull request (e.g.
|
||||
implementing features, refactoring code, porting to a different language),
|
||||
otherwise you risk spending a lot of time working on something that the
|
||||
project's developers might not want to merge into the project. You can solicit
|
||||
feedback and opinions in an open feature request thread or create a new one.
|
||||
|
||||
Please use the [git flow for pull requests](#git-flow) and follow MySQLTuner's
|
||||
[code conventions](#code-conventions) before submitting your work. Adhering to
|
||||
these guidelines is the best way to get your work included in MySQLTuner.
|
||||
|
||||
<a name="git-flow"></a>
|
||||
#### Git Flow for pull requests
|
||||
|
||||
1. [Fork](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/working-with-forks/fork-a-repo) the project, clone your fork,
|
||||
and configure the remotes:
|
||||
|
||||
```bash
|
||||
# Clone your fork of the repo into the current directory
|
||||
git clone git@github.com:<YOUR_USERNAME>/MySQLTuner-perl.git
|
||||
# Navigate to the newly cloned directory
|
||||
cd MySQLTuner-perl
|
||||
# Assign the original repo to a remote called "upstream"
|
||||
git remote add upstream https://github.com/major/MySQLTuner-perl
|
||||
```
|
||||
|
||||
2. If you cloned a while ago, get the latest changes from upstream:
|
||||
|
||||
```bash
|
||||
git checkout master
|
||||
git pull upstream master
|
||||
```
|
||||
|
||||
3. Create a new topic branch (off the main project development branch) to
|
||||
contain your feature, change, or fix:
|
||||
|
||||
```bash
|
||||
git checkout -b <topic-branch-name>
|
||||
```
|
||||
|
||||
4. Commit your changes in logical chunks. Please adhere to these [git commit message guidelines]
|
||||
or your code is unlikely be merged into the main project. Use Git's
|
||||
[interactive rebase](https://help.github.com/articles/interactive-rebase)
|
||||
feature to tidy up your commits before making them public.
|
||||
|
||||
5. Locally merge (or rebase) the upstream development branch into your topic branch:
|
||||
|
||||
```bash
|
||||
git pull [--rebase] upstream master
|
||||
```
|
||||
|
||||
6. Push your topic branch up to your fork:
|
||||
|
||||
```bash
|
||||
git push origin <topic-branch-name>
|
||||
```
|
||||
|
||||
7. [Open a Pull Request] with a clear title and description.
|
||||
|
||||
**IMPORTANT**: By submitting a patch, you agree to allow the project owner to
|
||||
license your work under the [GPLv3 License].
|
||||
|
||||
Copy of the license is available at [LICENSE]
|
||||
|
||||
<a name="code-conventions"></a>
|
||||
## MySQLTuner Code Conventions
|
||||
|
||||
1. Check code convention using **perltidy** and **perlcritic**
|
||||
2. Don't manually update the version number in `mysqltuner.pl`.
|
||||
|
||||
|
||||
[Enhancement issue]:https://github.com/major/MySQLTuner-perl/labels/enhancement
|
||||
[GitHub issue search]:https://github.com/major/MySQLTuner-perl/search?type=Issues
|
||||
[git commit message guidelines]:http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html
|
||||
[Open a Pull Request]:https://help.github.com/articles/using-pull-requests/
|
||||
[GPLv3 License]:https://en.wikipedia.org/wiki/GNU_General_Public_License
|
||||
[LICENSE]:https://github.com/major/MySQLTuner-perl/blob/master/LICENSE
|
|
@ -1 +0,0 @@
|
|||
2.5.4
|
31
Dockerfile
31
Dockerfile
|
@ -1,31 +0,0 @@
|
|||
FROM ubuntu:latest
|
||||
|
||||
LABEL maintainer="jmrenouard@gmail.com"
|
||||
|
||||
ENV DEBIAN_FRONTEND=noninteractive
|
||||
|
||||
RUN apt-get update && apt upgrade -y && apt-get install -yq --no-install-recommends \
|
||||
apt-utils \
|
||||
curl \
|
||||
wget \
|
||||
perl \
|
||||
perl-doc \
|
||||
mysql-client \
|
||||
libjson-perl \
|
||||
libtext-template-perl \
|
||||
&& apt-get clean \
|
||||
&& rm -rf /var/lib/apt/lists/* \
|
||||
&& mkdir -p /results
|
||||
RUN apt clean all
|
||||
WORKDIR /
|
||||
COPY ./mysqltuner.pl /mysqltuner.pl
|
||||
COPY ./vulnerabilities.csv /vulnerabilities.txt
|
||||
COPY ./basic_passwords.txt /basic_passwords.txt
|
||||
COPY ./template_example.tpl /template.tpl
|
||||
|
||||
ENTRYPOINT [ "perl", "/mysqltuner.pl", "--passwordfile", "/basic_passwords.txt",\
|
||||
"--cvefile", "/vulnerabilities.txt", "--nosysstat", "--defaults-file", \
|
||||
"/defaults.cnf", "--dumpdir", "/results", "--outputfile", \
|
||||
"/results/mysqltuner.txt", "--template", "/template.tpl", \
|
||||
"--reportfile", "/results/mysqltuner.html" ]
|
||||
CMD ["--verbose" ]
|
31
FEATURES.md
31
FEATURES.md
|
@ -1,31 +0,0 @@
|
|||
Features list for option: --feature (dev only)
|
||||
---
|
||||
|
||||
|
||||
* cve_recommendations
|
||||
* log_file_recommendations
|
||||
* make_recommendations
|
||||
* mariadb_aria
|
||||
* mariadb_connect
|
||||
* mariadb_galera
|
||||
* mariadb_rockdb
|
||||
* mariadb_spider
|
||||
* mariadb_threadpool
|
||||
* mariadb_tokudb
|
||||
* mariadb_xtradb
|
||||
* mysql_databases
|
||||
* mysql_indexes
|
||||
* mysql_innodb
|
||||
* mysql_myisam
|
||||
* mysql_pfs
|
||||
* mysql_routines
|
||||
* mysql_setup
|
||||
* mysql_stats
|
||||
* mysql_table_structures
|
||||
* mysql_tables
|
||||
* mysql_triggers
|
||||
* mysql_views
|
||||
* security_recommendations
|
||||
* system_recommendations
|
||||
* validate_mysql_version
|
||||
* validate_tuner_version
|
424
INTERNALS.md
424
INTERNALS.md
|
@ -1,424 +0,0 @@
|
|||
## MySQLTuner Internals
|
||||
|
||||
[](https://www.buymeacoffee.com/jmrenouard)
|
||||
## Table of contents
|
||||
|
||||
- [MySQLTuner Internals](#mysqltuner-internals)
|
||||
- [Table of contents](#table-of-contents)
|
||||
- [MySQLTuner steps](#mysqltuner-steps)
|
||||
- [MySQLTuner get login information steps](#mysqltuner-get-login-information-steps)
|
||||
- [MySQLTuner system checks](#mysqltuner-system-checks)
|
||||
- [MySQLTuner Server version checks](#mysqltuner-server-version-checks)
|
||||
- [Mysql error log file analysis](#mysql-error-log-file-analysis)
|
||||
- [MySQL Storage engine general information](#mysql-storage-engine-general-information)
|
||||
- [MySQLTuner security checks](#mysqltuner-security-checks)
|
||||
- [MySQLTuner CVE vulnerabilities detection](#mysqltuner-cve-vulnerabilities-detection)
|
||||
- [MySQLTuner database information](#mysqltuner-database-information)
|
||||
- [MySQLTuner index information](#mysqltuner-index-information)
|
||||
- [MySQLTuner Connections information](#mysqltuner-connections-information)
|
||||
- [MySQLTuner server information](#mysqltuner-server-information)
|
||||
- [MySQLTuner sort, join and temp table information](#mysqltuner-sort-join-and-temp-table-information)
|
||||
- [MySQLTuner global buffer information](#mysqltuner-global-buffer-information)
|
||||
- [MySQLTuner query cache checks](#mysqltuner-query-cache-checks)
|
||||
- [MySQLTuner memory checks](#mysqltuner-memory-checks)
|
||||
- [MySQLTuner slow queries checks](#mysqltuner-slow-queries-checks)
|
||||
- [MySQLTuner replication checks](#mysqltuner-replication-checks)
|
||||
- [MySQLTuner InnoDB information](#mysqltuner-innodb-information)
|
||||
- [MySQLTuner ARIADB information](#mysqltuner-ariadb-information)
|
||||
- [MySQLTuner MYISAM information](#mysqltuner-myisam-information)
|
||||
- [MySQLTuner Galera information](#mysqltuner-galera-information)
|
||||
- [MySQLTuner TokuDB information](#mysqltuner-tokudb-information)
|
||||
- [MySQLTuner XtraDB information](#mysqltuner-xtradb-information)
|
||||
- [MySQLTuner Connect information](#mysqltuner-connect-information)
|
||||
- [MySQLTuner Spider information](#mysqltuner-spider-information)
|
||||
- [MySQLTuner RocksDb information](#mysqltuner-rocksdb-information)
|
||||
- [MySQLTuner Thread pool information](#mysqltuner-thread-pool-information)
|
||||
- [MySQLTuner performance schema and sysschema information](#mysqltuner-performance-schema-and-sysschema-information)
|
||||
|
||||
## MySQLTuner steps
|
||||
|
||||
* Header Print
|
||||
* Get login information
|
||||
* Set up some OS variables
|
||||
* Toss variables/status into hashes
|
||||
* Get information about the tuning connection
|
||||
* Check current MySQL version
|
||||
* Suggest 64-bit upgrade
|
||||
* Analyze mysqld error log file
|
||||
* Show enabled storage engines
|
||||
* Show informations about databases (option: --dbstat)
|
||||
* Show informations about indexes (option: --idxstat)
|
||||
* Display some security recommendations
|
||||
* Calculate everything we need
|
||||
* Print the server stats
|
||||
* Print MyISAM stats
|
||||
* Print InnoDB stats
|
||||
* Print AriaDB stats
|
||||
* Print replication info
|
||||
* Make recommendations based on stats
|
||||
* Close reportfile if needed
|
||||
* Dump result if debug is on
|
||||
|
||||
## MySQLTuner get login information steps
|
||||
|
||||
* Is a login possible?
|
||||
* Force socket?
|
||||
* Remote connection?
|
||||
* _Specifying available RAM is required_
|
||||
* Got user/pass on command line?
|
||||
* mysql-quickbackup credentials available?
|
||||
* Plesk credentials available?
|
||||
* DirectAdmin credentials available?
|
||||
* Debian maintenance account credentials available?
|
||||
* Just try a login
|
||||
* If working, and .my.cnf isn't there, **WARNING**
|
||||
* If working, and .my.cnf is there, okay
|
||||
* Prompt for creds on the console
|
||||
|
||||
## MySQLTuner system checks
|
||||
* Check whether more than 2GB RAM present if on 32-bit OS
|
||||
* Check number of opened ports (warn when more than 9 ports opened)
|
||||
* Check 80, 8080, 443 and 8443 ports if warning is raised if they are opened
|
||||
* Check if some banned ports are not opened (option --bannedports separated by comma)
|
||||
* Check if non kernel and user process except mysqld are not using more than 15% of total physical memory
|
||||
* Check vm.swapiness
|
||||
* Check /etc/security/limit.conf
|
||||
* Check sysctl entries: sunrpc.tcp_slot_entries, vm.swappiness, fs.aio-fs-nr
|
||||
* Check mount point
|
||||
* Check Ethernet card
|
||||
* Check load average
|
||||
|
||||
## MySQLTuner Server version checks
|
||||
* EOL MySQL version check
|
||||
* Currently MySQL < 5.1 are considered EOL
|
||||
* Using 5.5+ version of MySQL for performance issue (asynchronous IO)
|
||||
|
||||
## Mysql error log file analysis
|
||||
* Look for potential current error log file name
|
||||
* Check permission on error log file
|
||||
* Check size on error log file
|
||||
* Check error and warning on error log file
|
||||
* Find last start and shutdown on error log file
|
||||
|
||||
## MySQL Storage engine general information
|
||||
|
||||
* Get storage engine counts/stats
|
||||
* Check for DB engines that are enabled but unused
|
||||
* Look for fragmented tables
|
||||
* Look for auto-increments near capacity
|
||||
* Look for tables with auto-increment with value near max capacity
|
||||
|
||||
## MySQLTuner security checks
|
||||
|
||||
* Is anonymous user present?
|
||||
* Users without passwords
|
||||
* Users with username as password
|
||||
* Users without host restriction
|
||||
* Weak password check (possibly using cracklib later?)
|
||||
* Using basic_passwords.txt as password database
|
||||
* Password list checks can be avoided (option: --skippassword)
|
||||
|
||||
## MySQLTuner CVE vulnerabilities detection
|
||||
|
||||
* option: --cvefile
|
||||
* Check if your MariaDB or MySQL version contains CVE entries.
|
||||
|
||||
## MySQLTuner database information
|
||||
* Performance analysis parameter checks
|
||||
* Per database information
|
||||
* Tables number
|
||||
* Rows number
|
||||
* Total size
|
||||
* Data size
|
||||
* Percentage of data size
|
||||
* Index size
|
||||
* Percentage of index size
|
||||
* Collation number
|
||||
* Check that there is only one collation for all tables in database
|
||||
* Check that there is only one collation for all table columns in database
|
||||
* Check that there is only one storage engine per user database
|
||||
|
||||
|
||||
## MySQLTuner index information
|
||||
|
||||
* Top 10 worth selectivity index
|
||||
* Per index information
|
||||
* Index Cardinality
|
||||
* Index Selectivity
|
||||
* Misc information about index definition
|
||||
* Misc information about index size
|
||||
|
||||
## MySQLTuner Connections information
|
||||
|
||||
* Highest usage of available connections
|
||||
* Percentage of used connections (<85%)
|
||||
* Percentage of aborted connections (<3%)
|
||||
|
||||
## MySQLTuner server information
|
||||
|
||||
* Uptime: whether MySQL started within last 24 hours
|
||||
* Bytes received and sent
|
||||
* Number of connections
|
||||
* Percentage between reads and writes
|
||||
* Is binary log activated?
|
||||
* Is GTID mode activated?
|
||||
|
||||
## MySQLTuner sort, join and temp table information
|
||||
|
||||
* Max memory temporary table size allowed.
|
||||
* Percentage of sort using temporary table (<10%)
|
||||
* Number of join performed without using indexes (<250)
|
||||
* Percentage of temporary table written on disk (<25%)
|
||||
* Thread cache (=4)
|
||||
* Thread cache hit ratio (>50%) if thread_handling is different of pools-of-threads
|
||||
* Table cache hit ratio (>2°%)
|
||||
* Table cache definition should be upper that total number of tables or in autoresizing mode
|
||||
* Percentage of open file and open file limit (<85%)
|
||||
* Percentage of table locks (<95%)
|
||||
* Percentage of binlog cache lock (<90%)
|
||||
|
||||
## MySQLTuner global buffer information
|
||||
|
||||
* Key Buffer
|
||||
* Max Tmp Table
|
||||
* Per Thread Buffer
|
||||
* Read Buffer
|
||||
* Read RND Buffer
|
||||
* Sort Buffer
|
||||
* Thread stack
|
||||
* Join Buffer
|
||||
* Binlog Cache Buffers size if activated
|
||||
|
||||
## MySQLTuner query cache checks
|
||||
|
||||
* Is Query cache activated?
|
||||
* Query Cache Buffers
|
||||
* Query Cache DISABLED, ALL REQUEST or ON DEMAND
|
||||
* Query Cache Size
|
||||
* Query cache hit ratio (cache efficiency)
|
||||
|
||||
## MySQLTuner memory checks
|
||||
|
||||
* Get total RAM/swap
|
||||
* Is there enough memory for max connections reached by MySQL?
|
||||
* Is there enough memory for max connections allowed by MySQL?
|
||||
* Max percentage of memory used (<85%)
|
||||
|
||||
## MySQLTuner slow queries checks
|
||||
|
||||
* Percentage of Slow queries (<5%)
|
||||
|
||||
## MySQLTuner replication checks
|
||||
|
||||
* Is server replication configured as slave?
|
||||
* SQL replication thread running?
|
||||
* IO replication thread running?
|
||||
* Replication lag in seconds (Seconds_behind_master)
|
||||
* Is Slave configured in read only?
|
||||
* Replication type ROW, MIX, STMT
|
||||
* Replication Semisync master
|
||||
* Replication Semisync slave
|
||||
* XA support activated
|
||||
* Replication started?
|
||||
|
||||
## MySQLTuner InnoDB information
|
||||
|
||||
* InnoDB Buffer Pool Size
|
||||
* If possible, innodb_buffer_pool_size should be greater than data and index size for Innodb Table
|
||||
* Innodb_buffer_pool_size should be around 75% to 80% of the available system memory.
|
||||
* InnoDB Buffer Pool Instances
|
||||
* MySQL needs 1 instance per 1Go of Buffer Pool
|
||||
* innodb_buffer_pool instances = round(innodb_buffer_pool_size / 1Go)
|
||||
* innodb_buffer_pool instances must be equal to or lower than 64
|
||||
|
||||
- A bug in MySQL 5.6 causes SHOW VARIABLES to report an innodb_buffer_pool_instances value of 8 when innodb_buffer_pool_size is less than 1GB and only one buffer pool instance is present (Bug #18343670).
|
||||
|
||||
* InnoDB Buffer Pool Usage
|
||||
* If more than 20% of InnoDB buffer pool is not used, raise an alert.
|
||||
* InnoDB Buffer Pool Log Size
|
||||
* InnoDB total log file size should be 25% of innodb_buffer_pool_size
|
||||
* InnoDB Read efficiency
|
||||
* Ratio of read without locks
|
||||
* InnoDB Write efficiency
|
||||
* Ratio of write without locks
|
||||
* InnoDB Log Waits
|
||||
* Checks that no lock is used on Innodb Log.
|
||||
* InnoDB Chunk Size
|
||||
* Check InnoDB Buffer Pool size is a multiple of InnoDB Buffer Pool chunk size * InnoDB Buffer Pool instances
|
||||
|
||||
## MySQLTuner AriaDB information
|
||||
|
||||
* Is Aria indexes size greater than page cache size?
|
||||
* Page cache read hit ratio (>95%)
|
||||
* Page cache write hit ratio (>95%)
|
||||
|
||||
|
||||
## MySQLTuner MyISAM information
|
||||
|
||||
* Key buffer usage (>90%)
|
||||
* Is MyISAM indexes size is greater than key buffer size ?
|
||||
* Key buffer read hit ratio (>95%)
|
||||
* Key buffer write hit ratio (>95%)
|
||||
|
||||
## MySQLTuner Galera information
|
||||
|
||||
* wsrep_ready cluster is ready
|
||||
* wsrep_connected node is connected to other nodes
|
||||
* wsrep_cluster_name is defined.
|
||||
* wsrep_node_name is defined.
|
||||
* Check thet notification script wsrep_notify_cmd is defined
|
||||
* wsrep_cluster_status PRIMARY /NON PRIMARY.
|
||||
* PRIMARY : Coherent cluster
|
||||
* NO PRIMARY : cluster gets several states
|
||||
* wsrep_ local_state_comment: Node state
|
||||
* SYNCED (uptodate),
|
||||
* DONOR (sending information to another node)
|
||||
* Joiner (try to reach cluster group)
|
||||
* SYNCED state able to read/write
|
||||
* wsrep_cluster_conf_id configuration level must be identical in all nodes
|
||||
* wsrep_slave_thread is between 3 or 4 times number of CPU core.
|
||||
* gcs.limit should be equal to wsrep_slave_threads * 5
|
||||
* gcs.fc_factor should be equal to 0.8
|
||||
* Flow control fraction should be lower than 0.02 (wsrep_flow_control_paused < 0.02)
|
||||
* wsrep_last_commited committed level must be identical in all nodes
|
||||
* Look for tables without primary keys
|
||||
* Look for non InnoDB tables for Galera
|
||||
* Variable innodb_flush_log_at_trx_commit should be set to 0.
|
||||
* Check that there are 3 or 5 members in Galera cluster.
|
||||
* Check that xtrabackup is used for SST method with wsrep_sst_method variable.
|
||||
* Check variables wsrep_OSU_method is defined to TOI for updates.
|
||||
* Check that there is no certification failures controlling wsrep_local_cert_failures status.
|
||||
|
||||
## MySQLTuner TokuDB information
|
||||
|
||||
* tokudb_cache_size
|
||||
* tokudb_directio
|
||||
* tokudb_empty_scan
|
||||
* tokudb_read_block_size
|
||||
* tokudb_commit_sync
|
||||
* tokudb_checkpointing_period
|
||||
* tokudb_block_size
|
||||
* tokudb_cleaner_iterations
|
||||
* tokudb_fanout
|
||||
|
||||
## MySQLTuner XtraDB information
|
||||
|
||||
* Not implemented
|
||||
|
||||
## MySQLTuner Connect information
|
||||
|
||||
* Not implemented
|
||||
|
||||
## MySQLTuner Spider information
|
||||
|
||||
* Not implemented
|
||||
|
||||
## MySQLTuner RocksDb information
|
||||
|
||||
* Not implemented
|
||||
|
||||
## MySQLTuner Thread pool information
|
||||
|
||||
* thread_pool_size between 16 to 36 for Innodb usage
|
||||
* thread_pool_size between 4 to 8 for MyISAM usage
|
||||
|
||||
## MySQLTuner performance schema and sysschema information
|
||||
|
||||
* Check that Performance schema is activated for 5.6+ version
|
||||
* Check that Performance schema is deactivated for 5.5- version
|
||||
* Check that Sys schema is installed
|
||||
* Sys Schema version
|
||||
* Top user per connection
|
||||
* Top user per statement
|
||||
* Top user per statement latency
|
||||
* Top user per lock latency
|
||||
* Top user per full scans
|
||||
* Top user per row_sent
|
||||
* Top user per row modified
|
||||
* Top user per io
|
||||
* Top user per io latency
|
||||
* Top host per connection
|
||||
* Top host per statement
|
||||
* Top host per statement latency
|
||||
* Top host per lock latency
|
||||
* Top host per full scans
|
||||
* Top host per rows sent
|
||||
* Top host per rows modified
|
||||
* Top host per io
|
||||
* Top 5 host per io latency
|
||||
* Top IO type order by total io
|
||||
* Top IO type order by total latency
|
||||
* Top IO type order by max latency
|
||||
* Top Stages order by total io
|
||||
* Top Stages order by total latency
|
||||
* Top Stages order by avg latency
|
||||
* Top host per table scans
|
||||
* InnoDB Buffer Pool by schema
|
||||
* InnoDB Buffer Pool by table
|
||||
* Process per allocated memory
|
||||
* InnoDB Lock Waits
|
||||
* Threads IO Latency
|
||||
* High Cost SQL statements
|
||||
* Top 5% slower queries
|
||||
* Top 10 nb statement type
|
||||
* Top statement by total latency
|
||||
* Top statement by lock latency
|
||||
* Top statement by full scans
|
||||
* Top statement by rows sent
|
||||
* Top statement by rows modified
|
||||
* Use temporary tables
|
||||
* Unused Indexes
|
||||
* Full table scans
|
||||
* Latest file IO by latency
|
||||
* File by IO read bytes
|
||||
* File by IO written bytes
|
||||
* File per IO total latency
|
||||
* File per IO read latency
|
||||
* File per IO write latency
|
||||
* Event Wait by read bytes
|
||||
* Event Wait by write bytes
|
||||
* Event per wait total latency
|
||||
* Event per wait read latency
|
||||
* Event per wait write latency
|
||||
* Top 15 most read indexes
|
||||
* Top 15 most modified indexes
|
||||
* Top 15 high select latency index
|
||||
* Top 15 high insert latency index
|
||||
* Top 15 high update latency index
|
||||
* Top 15 high delete latency index
|
||||
* Top 15 most read tables
|
||||
* Top 15 most modified tables
|
||||
* Top 15 high select latency tables
|
||||
* Top 15 high insert latency tables
|
||||
* Top 15 high update latency tables
|
||||
* Top 15 high delete latency tables
|
||||
* Redundant indexes
|
||||
* Tables not using InnoDb buffer
|
||||
* Top 15 Tables using InnoDb buffer
|
||||
* Top 15 Tables with InnoDb buffer free
|
||||
* Top 15 Most executed queries
|
||||
* Latest SQL queries in errors or warnings
|
||||
* Top 20 queries with full table scans
|
||||
* Top 15 reader queries (95% percentile)
|
||||
* Top 15 row look queries (95% percentile)
|
||||
* Top 15 total latency queries (95% percentile)
|
||||
* Top 15 max latency queries (95% percentile)
|
||||
* Top 15 average latency queries (95% percentile)
|
||||
* Top 20 queries with sort
|
||||
* Last 50 queries with sort
|
||||
* Top 15 row sorting queries with sort
|
||||
* Top 15 total latency queries with sort
|
||||
* Top 15 merge queries with sort
|
||||
* Top 15 average sort merges queries with sort
|
||||
* Top 15 scans queries with sort
|
||||
* Top 15 range queries with sort
|
||||
* Top 20 queries with temp table
|
||||
* Last 50 queries with temp table
|
||||
* Top 15 total latency queries with temp table
|
||||
* Top 15 queries with temp table to disk
|
||||
* Top 15 class events by number
|
||||
* Top 30 events by number
|
||||
* Top 15 class events by total latency
|
||||
* Top 30 events by total latency
|
||||
* Top 15 class events by max latency
|
||||
* Top 30 events by max latency
|
674
LICENSE
674
LICENSE
|
@ -1,674 +0,0 @@
|
|||
GNU GENERAL PUBLIC LICENSE
|
||||
Version 3, 29 June 2007
|
||||
|
||||
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
|
||||
Everyone is permitted to copy and distribute verbatim copies
|
||||
of this license document, but changing it is not allowed.
|
||||
|
||||
Preamble
|
||||
|
||||
The GNU General Public License is a free, copyleft license for
|
||||
software and other kinds of works.
|
||||
|
||||
The licenses for most software and other practical works are designed
|
||||
to take away your freedom to share and change the works. By contrast,
|
||||
the GNU General Public License is intended to guarantee your freedom to
|
||||
share and change all versions of a program--to make sure it remains free
|
||||
software for all its users. We, the Free Software Foundation, use the
|
||||
GNU General Public License for most of our software; it applies also to
|
||||
any other work released this way by its authors. You can apply it to
|
||||
your programs, too.
|
||||
|
||||
When we speak of free software, we are referring to freedom, not
|
||||
price. Our General Public Licenses are designed to make sure that you
|
||||
have the freedom to distribute copies of free software (and charge for
|
||||
them if you wish), that you receive source code or can get it if you
|
||||
want it, that you can change the software or use pieces of it in new
|
||||
free programs, and that you know you can do these things.
|
||||
|
||||
To protect your rights, we need to prevent others from denying you
|
||||
these rights or asking you to surrender the rights. Therefore, you have
|
||||
certain responsibilities if you distribute copies of the software, or if
|
||||
you modify it: responsibilities to respect the freedom of others.
|
||||
|
||||
For example, if you distribute copies of such a program, whether
|
||||
gratis or for a fee, you must pass on to the recipients the same
|
||||
freedoms that you received. You must make sure that they, too, receive
|
||||
or can get the source code. And you must show them these terms so they
|
||||
know their rights.
|
||||
|
||||
Developers that use the GNU GPL protect your rights with two steps:
|
||||
(1) assert copyright on the software, and (2) offer you this License
|
||||
giving you legal permission to copy, distribute and/or modify it.
|
||||
|
||||
For the developers' and authors' protection, the GPL clearly explains
|
||||
that there is no warranty for this free software. For both users' and
|
||||
authors' sake, the GPL requires that modified versions be marked as
|
||||
changed, so that their problems will not be attributed erroneously to
|
||||
authors of previous versions.
|
||||
|
||||
Some devices are designed to deny users access to install or run
|
||||
modified versions of the software inside them, although the manufacturer
|
||||
can do so. This is fundamentally incompatible with the aim of
|
||||
protecting users' freedom to change the software. The systematic
|
||||
pattern of such abuse occurs in the area of products for individuals to
|
||||
use, which is precisely where it is most unacceptable. Therefore, we
|
||||
have designed this version of the GPL to prohibit the practice for those
|
||||
products. If such problems arise substantially in other domains, we
|
||||
stand ready to extend this provision to those domains in future versions
|
||||
of the GPL, as needed to protect the freedom of users.
|
||||
|
||||
Finally, every program is threatened constantly by software patents.
|
||||
States should not allow patents to restrict development and use of
|
||||
software on general-purpose computers, but in those that do, we wish to
|
||||
avoid the special danger that patents applied to a free program could
|
||||
make it effectively proprietary. To prevent this, the GPL assures that
|
||||
patents cannot be used to render the program non-free.
|
||||
|
||||
The precise terms and conditions for copying, distribution and
|
||||
modification follow.
|
||||
|
||||
TERMS AND CONDITIONS
|
||||
|
||||
0. Definitions.
|
||||
|
||||
"This License" refers to version 3 of the GNU General Public License.
|
||||
|
||||
"Copyright" also means copyright-like laws that apply to other kinds of
|
||||
works, such as semiconductor masks.
|
||||
|
||||
"The Program" refers to any copyrightable work licensed under this
|
||||
License. Each licensee is addressed as "you". "Licensees" and
|
||||
"recipients" may be individuals or organizations.
|
||||
|
||||
To "modify" a work means to copy from or adapt all or part of the work
|
||||
in a fashion requiring copyright permission, other than the making of an
|
||||
exact copy. The resulting work is called a "modified version" of the
|
||||
earlier work or a work "based on" the earlier work.
|
||||
|
||||
A "covered work" means either the unmodified Program or a work based
|
||||
on the Program.
|
||||
|
||||
To "propagate" a work means to do anything with it that, without
|
||||
permission, would make you directly or secondarily liable for
|
||||
infringement under applicable copyright law, except executing it on a
|
||||
computer or modifying a private copy. Propagation includes copying,
|
||||
distribution (with or without modification), making available to the
|
||||
public, and in some countries other activities as well.
|
||||
|
||||
To "convey" a work means any kind of propagation that enables other
|
||||
parties to make or receive copies. Mere interaction with a user through
|
||||
a computer network, with no transfer of a copy, is not conveying.
|
||||
|
||||
An interactive user interface displays "Appropriate Legal Notices"
|
||||
to the extent that it includes a convenient and prominently visible
|
||||
feature that (1) displays an appropriate copyright notice, and (2)
|
||||
tells the user that there is no warranty for the work (except to the
|
||||
extent that warranties are provided), that licensees may convey the
|
||||
work under this License, and how to view a copy of this License. If
|
||||
the interface presents a list of user commands or options, such as a
|
||||
menu, a prominent item in the list meets this criterion.
|
||||
|
||||
1. Source Code.
|
||||
|
||||
The "source code" for a work means the preferred form of the work
|
||||
for making modifications to it. "Object code" means any non-source
|
||||
form of a work.
|
||||
|
||||
A "Standard Interface" means an interface that either is an official
|
||||
standard defined by a recognized standards body, or, in the case of
|
||||
interfaces specified for a particular programming language, one that
|
||||
is widely used among developers working in that language.
|
||||
|
||||
The "System Libraries" of an executable work include anything, other
|
||||
than the work as a whole, that (a) is included in the normal form of
|
||||
packaging a Major Component, but which is not part of that Major
|
||||
Component, and (b) serves only to enable use of the work with that
|
||||
Major Component, or to implement a Standard Interface for which an
|
||||
implementation is available to the public in source code form. A
|
||||
"Major Component", in this context, means a major essential component
|
||||
(kernel, window system, and so on) of the specific operating system
|
||||
(if any) on which the executable work runs, or a compiler used to
|
||||
produce the work, or an object code interpreter used to run it.
|
||||
|
||||
The "Corresponding Source" for a work in object code form means all
|
||||
the source code needed to generate, install, and (for an executable
|
||||
work) run the object code and to modify the work, including scripts to
|
||||
control those activities. However, it does not include the work's
|
||||
System Libraries, or general-purpose tools or generally available free
|
||||
programs which are used unmodified in performing those activities but
|
||||
which are not part of the work. For example, Corresponding Source
|
||||
includes interface definition files associated with source files for
|
||||
the work, and the source code for shared libraries and dynamically
|
||||
linked subprograms that the work is specifically designed to require,
|
||||
such as by intimate data communication or control flow between those
|
||||
subprograms and other parts of the work.
|
||||
|
||||
The Corresponding Source need not include anything that users
|
||||
can regenerate automatically from other parts of the Corresponding
|
||||
Source.
|
||||
|
||||
The Corresponding Source for a work in source code form is that
|
||||
same work.
|
||||
|
||||
2. Basic Permissions.
|
||||
|
||||
All rights granted under this License are granted for the term of
|
||||
copyright on the Program, and are irrevocable provided the stated
|
||||
conditions are met. This License explicitly affirms your unlimited
|
||||
permission to run the unmodified Program. The output from running a
|
||||
covered work is covered by this License only if the output, given its
|
||||
content, constitutes a covered work. This License acknowledges your
|
||||
rights of fair use or other equivalent, as provided by copyright law.
|
||||
|
||||
You may make, run and propagate covered works that you do not
|
||||
convey, without conditions so long as your license otherwise remains
|
||||
in force. You may convey covered works to others for the sole purpose
|
||||
of having them make modifications exclusively for you, or provide you
|
||||
with facilities for running those works, provided that you comply with
|
||||
the terms of this License in conveying all material for which you do
|
||||
not control copyright. Those thus making or running the covered works
|
||||
for you must do so exclusively on your behalf, under your direction
|
||||
and control, on terms that prohibit them from making any copies of
|
||||
your copyrighted material outside their relationship with you.
|
||||
|
||||
Conveying under any other circumstances is permitted solely under
|
||||
the conditions stated below. Sublicensing is not allowed; section 10
|
||||
makes it unnecessary.
|
||||
|
||||
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
|
||||
|
||||
No covered work shall be deemed part of an effective technological
|
||||
measure under any applicable law fulfilling obligations under article
|
||||
11 of the WIPO copyright treaty adopted on 20 December 1996, or
|
||||
similar laws prohibiting or restricting circumvention of such
|
||||
measures.
|
||||
|
||||
When you convey a covered work, you waive any legal power to forbid
|
||||
circumvention of technological measures to the extent such circumvention
|
||||
is effected by exercising rights under this License with respect to
|
||||
the covered work, and you disclaim any intention to limit operation or
|
||||
modification of the work as a means of enforcing, against the work's
|
||||
users, your or third parties' legal rights to forbid circumvention of
|
||||
technological measures.
|
||||
|
||||
4. Conveying Verbatim Copies.
|
||||
|
||||
You may convey verbatim copies of the Program's source code as you
|
||||
receive it, in any medium, provided that you conspicuously and
|
||||
appropriately publish on each copy an appropriate copyright notice;
|
||||
keep intact all notices stating that this License and any
|
||||
non-permissive terms added in accord with section 7 apply to the code;
|
||||
keep intact all notices of the absence of any warranty; and give all
|
||||
recipients a copy of this License along with the Program.
|
||||
|
||||
You may charge any price or no price for each copy that you convey,
|
||||
and you may offer support or warranty protection for a fee.
|
||||
|
||||
5. Conveying Modified Source Versions.
|
||||
|
||||
You may convey a work based on the Program, or the modifications to
|
||||
produce it from the Program, in the form of source code under the
|
||||
terms of section 4, provided that you also meet all of these conditions:
|
||||
|
||||
a) The work must carry prominent notices stating that you modified
|
||||
it, and giving a relevant date.
|
||||
|
||||
b) The work must carry prominent notices stating that it is
|
||||
released under this License and any conditions added under section
|
||||
7. This requirement modifies the requirement in section 4 to
|
||||
"keep intact all notices".
|
||||
|
||||
c) You must license the entire work, as a whole, under this
|
||||
License to anyone who comes into possession of a copy. This
|
||||
License will therefore apply, along with any applicable section 7
|
||||
additional terms, to the whole of the work, and all its parts,
|
||||
regardless of how they are packaged. This License gives no
|
||||
permission to license the work in any other way, but it does not
|
||||
invalidate such permission if you have separately received it.
|
||||
|
||||
d) If the work has interactive user interfaces, each must display
|
||||
Appropriate Legal Notices; however, if the Program has interactive
|
||||
interfaces that do not display Appropriate Legal Notices, your
|
||||
work need not make them do so.
|
||||
|
||||
A compilation of a covered work with other separate and independent
|
||||
works, which are not by their nature extensions of the covered work,
|
||||
and which are not combined with it such as to form a larger program,
|
||||
in or on a volume of a storage or distribution medium, is called an
|
||||
"aggregate" if the compilation and its resulting copyright are not
|
||||
used to limit the access or legal rights of the compilation's users
|
||||
beyond what the individual works permit. Inclusion of a covered work
|
||||
in an aggregate does not cause this License to apply to the other
|
||||
parts of the aggregate.
|
||||
|
||||
6. Conveying Non-Source Forms.
|
||||
|
||||
You may convey a covered work in object code form under the terms
|
||||
of sections 4 and 5, provided that you also convey the
|
||||
machine-readable Corresponding Source under the terms of this License,
|
||||
in one of these ways:
|
||||
|
||||
a) Convey the object code in, or embodied in, a physical product
|
||||
(including a physical distribution medium), accompanied by the
|
||||
Corresponding Source fixed on a durable physical medium
|
||||
customarily used for software interchange.
|
||||
|
||||
b) Convey the object code in, or embodied in, a physical product
|
||||
(including a physical distribution medium), accompanied by a
|
||||
written offer, valid for at least three years and valid for as
|
||||
long as you offer spare parts or customer support for that product
|
||||
model, to give anyone who possesses the object code either (1) a
|
||||
copy of the Corresponding Source for all the software in the
|
||||
product that is covered by this License, on a durable physical
|
||||
medium customarily used for software interchange, for a price no
|
||||
more than your reasonable cost of physically performing this
|
||||
conveying of source, or (2) access to copy the
|
||||
Corresponding Source from a network server at no charge.
|
||||
|
||||
c) Convey individual copies of the object code with a copy of the
|
||||
written offer to provide the Corresponding Source. This
|
||||
alternative is allowed only occasionally and noncommercially, and
|
||||
only if you received the object code with such an offer, in accord
|
||||
with subsection 6b.
|
||||
|
||||
d) Convey the object code by offering access from a designated
|
||||
place (gratis or for a charge), and offer equivalent access to the
|
||||
Corresponding Source in the same way through the same place at no
|
||||
further charge. You need not require recipients to copy the
|
||||
Corresponding Source along with the object code. If the place to
|
||||
copy the object code is a network server, the Corresponding Source
|
||||
may be on a different server (operated by you or a third party)
|
||||
that supports equivalent copying facilities, provided you maintain
|
||||
clear directions next to the object code saying where to find the
|
||||
Corresponding Source. Regardless of what server hosts the
|
||||
Corresponding Source, you remain obligated to ensure that it is
|
||||
available for as long as needed to satisfy these requirements.
|
||||
|
||||
e) Convey the object code using peer-to-peer transmission, provided
|
||||
you inform other peers where the object code and Corresponding
|
||||
Source of the work are being offered to the general public at no
|
||||
charge under subsection 6d.
|
||||
|
||||
A separable portion of the object code, whose source code is excluded
|
||||
from the Corresponding Source as a System Library, need not be
|
||||
included in conveying the object code work.
|
||||
|
||||
A "User Product" is either (1) a "consumer product", which means any
|
||||
tangible personal property which is normally used for personal, family,
|
||||
or household purposes, or (2) anything designed or sold for incorporation
|
||||
into a dwelling. In determining whether a product is a consumer product,
|
||||
doubtful cases shall be resolved in favor of coverage. For a particular
|
||||
product received by a particular user, "normally used" refers to a
|
||||
typical or common use of that class of product, regardless of the status
|
||||
of the particular user or of the way in which the particular user
|
||||
actually uses, or expects or is expected to use, the product. A product
|
||||
is a consumer product regardless of whether the product has substantial
|
||||
commercial, industrial or non-consumer uses, unless such uses represent
|
||||
the only significant mode of use of the product.
|
||||
|
||||
"Installation Information" for a User Product means any methods,
|
||||
procedures, authorization keys, or other information required to install
|
||||
and execute modified versions of a covered work in that User Product from
|
||||
a modified version of its Corresponding Source. The information must
|
||||
suffice to ensure that the continued functioning of the modified object
|
||||
code is in no case prevented or interfered with solely because
|
||||
modification has been made.
|
||||
|
||||
If you convey an object code work under this section in, or with, or
|
||||
specifically for use in, a User Product, and the conveying occurs as
|
||||
part of a transaction in which the right of possession and use of the
|
||||
User Product is transferred to the recipient in perpetuity or for a
|
||||
fixed term (regardless of how the transaction is characterized), the
|
||||
Corresponding Source conveyed under this section must be accompanied
|
||||
by the Installation Information. But this requirement does not apply
|
||||
if neither you nor any third party retains the ability to install
|
||||
modified object code on the User Product (for example, the work has
|
||||
been installed in ROM).
|
||||
|
||||
The requirement to provide Installation Information does not include a
|
||||
requirement to continue to provide support service, warranty, or updates
|
||||
for a work that has been modified or installed by the recipient, or for
|
||||
the User Product in which it has been modified or installed. Access to a
|
||||
network may be denied when the modification itself materially and
|
||||
adversely affects the operation of the network or violates the rules and
|
||||
protocols for communication across the network.
|
||||
|
||||
Corresponding Source conveyed, and Installation Information provided,
|
||||
in accord with this section must be in a format that is publicly
|
||||
documented (and with an implementation available to the public in
|
||||
source code form), and must require no special password or key for
|
||||
unpacking, reading or copying.
|
||||
|
||||
7. Additional Terms.
|
||||
|
||||
"Additional permissions" are terms that supplement the terms of this
|
||||
License by making exceptions from one or more of its conditions.
|
||||
Additional permissions that are applicable to the entire Program shall
|
||||
be treated as though they were included in this License, to the extent
|
||||
that they are valid under applicable law. If additional permissions
|
||||
apply only to part of the Program, that part may be used separately
|
||||
under those permissions, but the entire Program remains governed by
|
||||
this License without regard to the additional permissions.
|
||||
|
||||
When you convey a copy of a covered work, you may at your option
|
||||
remove any additional permissions from that copy, or from any part of
|
||||
it. (Additional permissions may be written to require their own
|
||||
removal in certain cases when you modify the work.) You may place
|
||||
additional permissions on material, added by you to a covered work,
|
||||
for which you have or can give appropriate copyright permission.
|
||||
|
||||
Notwithstanding any other provision of this License, for material you
|
||||
add to a covered work, you may (if authorized by the copyright holders of
|
||||
that material) supplement the terms of this License with terms:
|
||||
|
||||
a) Disclaiming warranty or limiting liability differently from the
|
||||
terms of sections 15 and 16 of this License; or
|
||||
|
||||
b) Requiring preservation of specified reasonable legal notices or
|
||||
author attributions in that material or in the Appropriate Legal
|
||||
Notices displayed by works containing it; or
|
||||
|
||||
c) Prohibiting misrepresentation of the origin of that material, or
|
||||
requiring that modified versions of such material be marked in
|
||||
reasonable ways as different from the original version; or
|
||||
|
||||
d) Limiting the use for publicity purposes of names of licensors or
|
||||
authors of the material; or
|
||||
|
||||
e) Declining to grant rights under trademark law for use of some
|
||||
trade names, trademarks, or service marks; or
|
||||
|
||||
f) Requiring indemnification of licensors and authors of that
|
||||
material by anyone who conveys the material (or modified versions of
|
||||
it) with contractual assumptions of liability to the recipient, for
|
||||
any liability that these contractual assumptions directly impose on
|
||||
those licensors and authors.
|
||||
|
||||
All other non-permissive additional terms are considered "further
|
||||
restrictions" within the meaning of section 10. If the Program as you
|
||||
received it, or any part of it, contains a notice stating that it is
|
||||
governed by this License along with a term that is a further
|
||||
restriction, you may remove that term. If a license document contains
|
||||
a further restriction but permits relicensing or conveying under this
|
||||
License, you may add to a covered work material governed by the terms
|
||||
of that license document, provided that the further restriction does
|
||||
not survive such relicensing or conveying.
|
||||
|
||||
If you add terms to a covered work in accord with this section, you
|
||||
must place, in the relevant source files, a statement of the
|
||||
additional terms that apply to those files, or a notice indicating
|
||||
where to find the applicable terms.
|
||||
|
||||
Additional terms, permissive or non-permissive, may be stated in the
|
||||
form of a separately written license, or stated as exceptions;
|
||||
the above requirements apply either way.
|
||||
|
||||
8. Termination.
|
||||
|
||||
You may not propagate or modify a covered work except as expressly
|
||||
provided under this License. Any attempt otherwise to propagate or
|
||||
modify it is void, and will automatically terminate your rights under
|
||||
this License (including any patent licenses granted under the third
|
||||
paragraph of section 11).
|
||||
|
||||
However, if you cease all violation of this License, then your
|
||||
license from a particular copyright holder is reinstated (a)
|
||||
provisionally, unless and until the copyright holder explicitly and
|
||||
finally terminates your license, and (b) permanently, if the copyright
|
||||
holder fails to notify you of the violation by some reasonable means
|
||||
prior to 60 days after the cessation.
|
||||
|
||||
Moreover, your license from a particular copyright holder is
|
||||
reinstated permanently if the copyright holder notifies you of the
|
||||
violation by some reasonable means, this is the first time you have
|
||||
received notice of violation of this License (for any work) from that
|
||||
copyright holder, and you cure the violation prior to 30 days after
|
||||
your receipt of the notice.
|
||||
|
||||
Termination of your rights under this section does not terminate the
|
||||
licenses of parties who have received copies or rights from you under
|
||||
this License. If your rights have been terminated and not permanently
|
||||
reinstated, you do not qualify to receive new licenses for the same
|
||||
material under section 10.
|
||||
|
||||
9. Acceptance Not Required for Having Copies.
|
||||
|
||||
You are not required to accept this License in order to receive or
|
||||
run a copy of the Program. Ancillary propagation of a covered work
|
||||
occurring solely as a consequence of using peer-to-peer transmission
|
||||
to receive a copy likewise does not require acceptance. However,
|
||||
nothing other than this License grants you permission to propagate or
|
||||
modify any covered work. These actions infringe copyright if you do
|
||||
not accept this License. Therefore, by modifying or propagating a
|
||||
covered work, you indicate your acceptance of this License to do so.
|
||||
|
||||
10. Automatic Licensing of Downstream Recipients.
|
||||
|
||||
Each time you convey a covered work, the recipient automatically
|
||||
receives a license from the original licensors, to run, modify and
|
||||
propagate that work, subject to this License. You are not responsible
|
||||
for enforcing compliance by third parties with this License.
|
||||
|
||||
An "entity transaction" is a transaction transferring control of an
|
||||
organization, or substantially all assets of one, or subdividing an
|
||||
organization, or merging organizations. If propagation of a covered
|
||||
work results from an entity transaction, each party to that
|
||||
transaction who receives a copy of the work also receives whatever
|
||||
licenses to the work the party's predecessor in interest had or could
|
||||
give under the previous paragraph, plus a right to possession of the
|
||||
Corresponding Source of the work from the predecessor in interest, if
|
||||
the predecessor has it or can get it with reasonable efforts.
|
||||
|
||||
You may not impose any further restrictions on the exercise of the
|
||||
rights granted or affirmed under this License. For example, you may
|
||||
not impose a license fee, royalty, or other charge for exercise of
|
||||
rights granted under this License, and you may not initiate litigation
|
||||
(including a cross-claim or counterclaim in a lawsuit) alleging that
|
||||
any patent claim is infringed by making, using, selling, offering for
|
||||
sale, or importing the Program or any portion of it.
|
||||
|
||||
11. Patents.
|
||||
|
||||
A "contributor" is a copyright holder who authorizes use under this
|
||||
License of the Program or a work on which the Program is based. The
|
||||
work thus licensed is called the contributor's "contributor version".
|
||||
|
||||
A contributor's "essential patent claims" are all patent claims
|
||||
owned or controlled by the contributor, whether already acquired or
|
||||
hereafter acquired, that would be infringed by some manner, permitted
|
||||
by this License, of making, using, or selling its contributor version,
|
||||
but do not include claims that would be infringed only as a
|
||||
consequence of further modification of the contributor version. For
|
||||
purposes of this definition, "control" includes the right to grant
|
||||
patent sublicenses in a manner consistent with the requirements of
|
||||
this License.
|
||||
|
||||
Each contributor grants you a non-exclusive, worldwide, royalty-free
|
||||
patent license under the contributor's essential patent claims, to
|
||||
make, use, sell, offer for sale, import and otherwise run, modify and
|
||||
propagate the contents of its contributor version.
|
||||
|
||||
In the following three paragraphs, a "patent license" is any express
|
||||
agreement or commitment, however denominated, not to enforce a patent
|
||||
(such as an express permission to practice a patent or covenant not to
|
||||
sue for patent infringement). To "grant" such a patent license to a
|
||||
party means to make such an agreement or commitment not to enforce a
|
||||
patent against the party.
|
||||
|
||||
If you convey a covered work, knowingly relying on a patent license,
|
||||
and the Corresponding Source of the work is not available for anyone
|
||||
to copy, free of charge and under the terms of this License, through a
|
||||
publicly available network server or other readily accessible means,
|
||||
then you must either (1) cause the Corresponding Source to be so
|
||||
available, or (2) arrange to deprive yourself of the benefit of the
|
||||
patent license for this particular work, or (3) arrange, in a manner
|
||||
consistent with the requirements of this License, to extend the patent
|
||||
license to downstream recipients. "Knowingly relying" means you have
|
||||
actual knowledge that, but for the patent license, your conveying the
|
||||
covered work in a country, or your recipient's use of the covered work
|
||||
in a country, would infringe one or more identifiable patents in that
|
||||
country that you have reason to believe are valid.
|
||||
|
||||
If, pursuant to or in connection with a single transaction or
|
||||
arrangement, you convey, or propagate by procuring conveyance of, a
|
||||
covered work, and grant a patent license to some of the parties
|
||||
receiving the covered work authorizing them to use, propagate, modify
|
||||
or convey a specific copy of the covered work, then the patent license
|
||||
you grant is automatically extended to all recipients of the covered
|
||||
work and works based on it.
|
||||
|
||||
A patent license is "discriminatory" if it does not include within
|
||||
the scope of its coverage, prohibits the exercise of, or is
|
||||
conditioned on the non-exercise of one or more of the rights that are
|
||||
specifically granted under this License. You may not convey a covered
|
||||
work if you are a party to an arrangement with a third party that is
|
||||
in the business of distributing software, under which you make payment
|
||||
to the third party based on the extent of your activity of conveying
|
||||
the work, and under which the third party grants, to any of the
|
||||
parties who would receive the covered work from you, a discriminatory
|
||||
patent license (a) in connection with copies of the covered work
|
||||
conveyed by you (or copies made from those copies), or (b) primarily
|
||||
for and in connection with specific products or compilations that
|
||||
contain the covered work, unless you entered into that arrangement,
|
||||
or that patent license was granted, prior to 28 March 2007.
|
||||
|
||||
Nothing in this License shall be construed as excluding or limiting
|
||||
any implied license or other defenses to infringement that may
|
||||
otherwise be available to you under applicable patent law.
|
||||
|
||||
12. No Surrender of Others' Freedom.
|
||||
|
||||
If conditions are imposed on you (whether by court order, agreement or
|
||||
otherwise) that contradict the conditions of this License, they do not
|
||||
excuse you from the conditions of this License. If you cannot convey a
|
||||
covered work so as to satisfy simultaneously your obligations under this
|
||||
License and any other pertinent obligations, then as a consequence you may
|
||||
not convey it at all. For example, if you agree to terms that obligate you
|
||||
to collect a royalty for further conveying from those to whom you convey
|
||||
the Program, the only way you could satisfy both those terms and this
|
||||
License would be to refrain entirely from conveying the Program.
|
||||
|
||||
13. Use with the GNU Affero General Public License.
|
||||
|
||||
Notwithstanding any other provision of this License, you have
|
||||
permission to link or combine any covered work with a work licensed
|
||||
under version 3 of the GNU Affero General Public License into a single
|
||||
combined work, and to convey the resulting work. The terms of this
|
||||
License will continue to apply to the part which is the covered work,
|
||||
but the special requirements of the GNU Affero General Public License,
|
||||
section 13, concerning interaction through a network will apply to the
|
||||
combination as such.
|
||||
|
||||
14. Revised Versions of this License.
|
||||
|
||||
The Free Software Foundation may publish revised and/or new versions of
|
||||
the GNU General Public License from time to time. Such new versions will
|
||||
be similar in spirit to the present version, but may differ in detail to
|
||||
address new problems or concerns.
|
||||
|
||||
Each version is given a distinguishing version number. If the
|
||||
Program specifies that a certain numbered version of the GNU General
|
||||
Public License "or any later version" applies to it, you have the
|
||||
option of following the terms and conditions either of that numbered
|
||||
version or of any later version published by the Free Software
|
||||
Foundation. If the Program does not specify a version number of the
|
||||
GNU General Public License, you may choose any version ever published
|
||||
by the Free Software Foundation.
|
||||
|
||||
If the Program specifies that a proxy can decide which future
|
||||
versions of the GNU General Public License can be used, that proxy's
|
||||
public statement of acceptance of a version permanently authorizes you
|
||||
to choose that version for the Program.
|
||||
|
||||
Later license versions may give you additional or different
|
||||
permissions. However, no additional obligations are imposed on any
|
||||
author or copyright holder as a result of your choosing to follow a
|
||||
later version.
|
||||
|
||||
15. Disclaimer of Warranty.
|
||||
|
||||
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
|
||||
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
|
||||
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
|
||||
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
|
||||
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
||||
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
|
||||
IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
|
||||
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
|
||||
|
||||
16. Limitation of Liability.
|
||||
|
||||
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
|
||||
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
|
||||
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
|
||||
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
|
||||
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
|
||||
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
|
||||
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
|
||||
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
|
||||
SUCH DAMAGES.
|
||||
|
||||
17. Interpretation of Sections 15 and 16.
|
||||
|
||||
If the disclaimer of warranty and limitation of liability provided
|
||||
above cannot be given local legal effect according to their terms,
|
||||
reviewing courts shall apply local law that most closely approximates
|
||||
an absolute waiver of all civil liability in connection with the
|
||||
Program, unless a warranty or assumption of liability accompanies a
|
||||
copy of the Program in return for a fee.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
|
||||
How to Apply These Terms to Your New Programs
|
||||
|
||||
If you develop a new program, and you want it to be of the greatest
|
||||
possible use to the public, the best way to achieve this is to make it
|
||||
free software which everyone can redistribute and change under these terms.
|
||||
|
||||
To do so, attach the following notices to the program. It is safest
|
||||
to attach them to the start of each source file to most effectively
|
||||
state the exclusion of warranty; and each file should have at least
|
||||
the "copyright" line and a pointer to where the full notice is found.
|
||||
|
||||
<one line to give the program's name and a brief idea of what it does.>
|
||||
Copyright (C) <year> <name of author>
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
Also add information on how to contact you by electronic and paper mail.
|
||||
|
||||
If the program does terminal interaction, make it output a short
|
||||
notice like this when it starts in an interactive mode:
|
||||
|
||||
<program> Copyright (C) <year> <name of author>
|
||||
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
|
||||
This is free software, and you are welcome to redistribute it
|
||||
under certain conditions; type `show c' for details.
|
||||
|
||||
The hypothetical commands `show w' and `show c' should show the appropriate
|
||||
parts of the General Public License. Of course, your program's commands
|
||||
might be different; for a GUI interface, you would use an "about box".
|
||||
|
||||
You should also get your employer (if you work as a programmer) or school,
|
||||
if any, to sign a "copyright disclaimer" for the program, if necessary.
|
||||
For more information on this, and how to apply and follow the GNU GPL, see
|
||||
<http://www.gnu.org/licenses/>.
|
||||
|
||||
The GNU General Public License does not permit incorporating your program
|
||||
into proprietary programs. If your program is a subroutine library, you
|
||||
may consider it more useful to permit linking proprietary applications with
|
||||
the library. If this is what you want to do, use the GNU Lesser General
|
||||
Public License instead of this License. But first, please read
|
||||
<http://www.gnu.org/philosophy/why-not-lgpl.html>.
|
90
Makefile
90
Makefile
|
@ -1,90 +0,0 @@
|
|||
VERSION=$(shell grep '\- Version ' mysqltuner.pl | awk '{ print $$NF}')
|
||||
UPDATE_SUB_VERSION=$(shell echo $(VERSION) | awk -F. '{ print $$1"."$$2"."$$3+1 }')
|
||||
UPDATE_MINOR_VERSION=$(shell echo $(VERSION) | awk -F. '{ print $$1"."$$2+1".0" }')
|
||||
UPDATE_MAJOR_VERSION=$(shell echo $(VERSION) | awk -F. '{ print $$1+1".0.0" }')
|
||||
|
||||
all: generate_cve generate_features generate_usage tidy increment_sub_version
|
||||
|
||||
help:
|
||||
@echo "Usage: make <target>"
|
||||
@echo " help: Show this help"
|
||||
@echo " generate_usage: Generate USAGE.md"
|
||||
@echo " generate_cve: Generate vulnerabilities.csv"
|
||||
@echo " generate_features: Generate FEATURES.md"
|
||||
@echo " tidy: Tidy mysqltuner.pl"
|
||||
@echo " installdep_debian: Install dependencies on Debian"
|
||||
@echo " increment_sub_version: Increment sub version"
|
||||
@echo " increment_minor_version: Increment minor version"
|
||||
@echo " increment_major_version: Increment major version"
|
||||
@echo " push: Push to GitHub"
|
||||
|
||||
|
||||
installdep_debian:
|
||||
sudo apt install -y cpanminus libpod-markdown-perl libwww-mechanize-gzip-perl perltidy dos2unix
|
||||
sudo cpanm File::Util
|
||||
curl -sL https://raw.githubusercontent.com/slimtoolkit/slim/master/scripts/install-slim.sh | sudo -E bash -
|
||||
|
||||
tidy:
|
||||
dos2unix ./mysqltuner.pl
|
||||
perltidy -b ./mysqltuner.pl
|
||||
git add ./mysqltuner.pl
|
||||
git commit -m "Indenting mysqltuner at $(shell date --iso=seconds)"
|
||||
|
||||
generate_usage:
|
||||
pod2markdown mysqltuner.pl >USAGE.md
|
||||
git add ./USAGE.md
|
||||
git commit -m "Generate USAGE.md at $(shell date --iso=seconds)"
|
||||
|
||||
generate_cve:
|
||||
perl ./build/updateCVElist.pl
|
||||
git add ./vulnerabilities.csv
|
||||
git commit -m "Generate CVE list at $(shell date --iso=seconds)"
|
||||
|
||||
generate_version_file:
|
||||
rm -f CURRENT_VERSION.txt
|
||||
grep "# mysqltuner.pl - Version" ./mysqltuner.pl | awk '{ print $$NF}' > CURRENT_VERSION.txt
|
||||
|
||||
generate_features:
|
||||
perl ./build/genFeatures.sh
|
||||
git add ./FEATURES.md
|
||||
git commit -m "Generate FEATURES.md at $(shell date --iso=seconds)"
|
||||
|
||||
increment_sub_version:
|
||||
@echo "Incrementing sub version from $(VERSION) to $(UPDATE_SUB_VERSION)"
|
||||
sed -i "s/$(VERSION)/$(UPDATE_SUB_VERSION)/" mysqltuner.pl *.md .github/workflows/*.yml
|
||||
git add ./*.md ./mysqltuner.pl
|
||||
git commit -m "Generate $(UPDATE_SUB_VERSION) sub version at $(shell date --iso=seconds)"
|
||||
git tag -a v$(UPDATE_SUB_VERSION) -m "Generate $(UPDATE_SUB_VERSION) sub version at $(shell date --iso=seconds)"
|
||||
git push --tags
|
||||
|
||||
increment_minor_version:
|
||||
@echo "Incrementing minor version from $(VERSION) to $(UPDATE_MINOR_VERSION)"
|
||||
sed -i "s/$(VERSION)/$(UPDATE_MINOR_VERSION)/" mysqltuner.pl *.md .github/workflows/*.yml
|
||||
git add ./*.md ./mysqltuner.pl
|
||||
git commit -m "Generate $(UPDATE_MINOR_VERSION) minor version at $(shell date --iso=seconds)"
|
||||
git tag -a v$(UPDATE_MINOR_VERSION) -m "Generate $(UPDATE_MINOR_VERSION) minor version at $(shell date --iso=seconds)"
|
||||
git push --tags
|
||||
|
||||
increment_major_version:
|
||||
@echo "Incrementing major version from $(VERSION) to $(UPDATE_MAJOR_VERSION)"
|
||||
sed -i "s/$(VERSION)/$(UPDATE_MAJOR_VERSION)/" mysqltuner.pl *.md .github/workflows/*.yml
|
||||
git add ./*.md ./mysqltuner.pl
|
||||
git commit -m "Generate $(UPDATE_SUB_VERSION) major version at $(shell date --iso=seconds)"
|
||||
git tag -a v$(UPDATE_MINOR_VERSION) -m "Generate $(UPDATE_MAJOR_VERSION) major version at $(shell date --iso=seconds)"
|
||||
git push --tags
|
||||
|
||||
docker_build:
|
||||
docker build . -t jmrenouard/mysqltuner:latest -t jmrenouard/mysqltuner:$(VERSION)
|
||||
|
||||
docker_slim:
|
||||
docker run --rm -it --privileged -v /var/run/docker.sock:/var/run/docker.sock -v $(PWD):/root/app -w /root/app jmrenouard/mysqltuner:latest slim build
|
||||
|
||||
docker_push: docker_build
|
||||
bash build/publishtodockerhub.sh $(VERSION)
|
||||
|
||||
|
||||
push:
|
||||
git push
|
||||
|
||||
pull:
|
||||
git pull
|
236
README.fr.md
236
README.fr.md
|
@ -1,236 +0,0 @@
|
|||

|
||||
|
||||
[](https://www.buymeacoffee.com/jmrenouard)
|
||||
|
||||
[](http://opensource.box.com/badges)
|
||||
[](http://opensource.box.com/badges)
|
||||
[](http://isitmaintained.com/project/major/MySQLTuner-perl "Average time to resolve an issue")
|
||||
[](http://isitmaintained.com/project/major/MySQLTuner-perl "Percentage of issues still open")
|
||||
[](https://opensource.org/licenses/GPL-3.0/)
|
||||
|
||||
**MySQLTuner** est un script écrit en Perl qui permet d'effectuer une revue de configuration pour MySQL/MAriaDB/PerconaDB rapidement et propose des ajustements pour améliorer la performance et la stabilité du serveur. L'état des variables et statuts est analysé et présenté de manière synthétique et structurée ainsi que plusieurs suggestions basiques concernant la performance.
|
||||
|
||||
**MySQLTuner** supporte dans a dernière version plus de ~300 indicators pour MySQL/MariaDB/Percona Server.
|
||||
|
||||
**MySQLTuner** is maintained and indicator collect is increasing week after week supporting a lot of configuration sush as , , , Linux OS metrics, , , , ...
|
||||
|
||||
You can found more details on this indicators
|
||||
.
|
||||
|
||||
|
||||

|
||||
|
||||
MySQLTuner needs you:
|
||||
===
|
||||
|
||||
**MySQLTuner** needs contributors for documentation, code and feedbacks..
|
||||
|
||||
* Please join us on issue track at [GitHub tracker](https://github.com/major/MySQLTuner-perl/issues)</a>.
|
||||
* Contribution guide is avalaible following [MySQLTuner contributing guide](https://github.com/major/MySQLTuner-perl/blob/master/CONTRIBUTING.md)
|
||||
* Star **MySQLTuner project** at [MySQLTuner Git Hub Project](https://github.com/major/MySQLTuner-perl)
|
||||
|
||||
Compatibility:
|
||||
====
|
||||
|
||||
* MySQL 5.7 (full support)
|
||||
* MySQL 5.6 (full support)
|
||||
* MySQL 5.5 (full support)
|
||||
* MariaDB 10.1 (full support)
|
||||
* MariaDB 10.0 (full support)
|
||||
* Percona Server 5.6 (full support)
|
||||
* Percona XtraDB cluster (full support)
|
||||
* MySQL 3.23, 4.0, 4.1, 5.0, 5.1 (partial support - deprecated version)
|
||||
* Perl 5.6 or later (with [perl-doc](http://search.cpan.org/~dapm/perl-5.14.4/pod/perldoc.pod) package)
|
||||
* Unix/Linux based operating system (tested on Linux, BSD variants, and Solaris variants)
|
||||
* Windows is not supported at this time (Help wanted !!!!!)
|
||||
* Unrestricted read access to the MySQL server (OS root access recommended for MySQL < 5.1)
|
||||
* CVE vulnerabilites detection support from [https://cve.mitre.org](https://cve.mitre.org)
|
||||
|
||||
***WARNING***
|
||||
--
|
||||
It is **extremely important** for you to fully understand each change
|
||||
you make to a MySQL database server. If you don't understand portions
|
||||
of the script's output, or if you don't understand the recommendations,
|
||||
**you should consult** a knowledgeable DBA or system administrator
|
||||
that you trust. **Always** test your changes on staging environments, and
|
||||
always keep in mind that improvements in one area can **negatively affect**
|
||||
MySQL in other areas.
|
||||
|
||||
**Seriously - please review the FAQ section below.**
|
||||
|
||||
What MySQLTuner is checking exactly ?
|
||||
--
|
||||
All checks done by **MySQLTuner** are documented in [MySQLTuner Internals](https://github.com/major/MySQLTuner-perl/blob/master/INTERNALS.md) documentation.
|
||||
|
||||
Download/Installation
|
||||
--
|
||||
|
||||
You can download the entire repository by using 'git clone' followed by the cloning URL above. The simplest and shortest method is:
|
||||
|
||||
wget http://mysqltuner.pl/ -O mysqltuner.pl
|
||||
wget https://raw.githubusercontent.com/major/MySQLTuner-perl/master/basic_passwords.txt -O basic_passwords.txt
|
||||
wget https://raw.githubusercontent.com/major/MySQLTuner-perl/master/vulnerabilities.csv -O vulnerabilities.csv
|
||||
perl mysqltuner.pl
|
||||
|
||||
Of course, you can add the execute bit (`chmod +x mysqltuner.pl`) so you can execute it without calling perl directly.
|
||||
|
||||
Specific usage
|
||||
--
|
||||
|
||||
__Usage:__ Minimal usage locally
|
||||
|
||||
perl mysqltuner.pl
|
||||
|
||||
__Usage:__ Minimal usage remotely
|
||||
|
||||
perl mysqltuner.pl --host targetDNS_IP --user admin_user --pass admin_password
|
||||
|
||||
__Usage:__ Enable maximum output information around MySQL/MariaDb without debugging
|
||||
|
||||
perl mysqltuner.pl --verbose
|
||||
perl mysqltuner.pl --buffers --dbstat --idxstat --sysstat --pfstat
|
||||
|
||||
|
||||
__Usage:__ Enable CVE vulnerabilities check for your MariaDB or MySQL version
|
||||
|
||||
perl mysqltuner.pl --cvefile=vulnerabilities.csv
|
||||
|
||||
__Usage:__ Write your result in a file with information displayed
|
||||
|
||||
perl mysqltuner.pl --outputfile /tmp/result_mysqltuner.txt
|
||||
|
||||
__Usage:__ Write your result in a file **without outputting information**
|
||||
|
||||
perl mysqltuner.pl --silent --outputfile /tmp/result_mysqltuner.txt
|
||||
|
||||
__Usage:__ Using template model to customize your reporting file based on [Text::Template](https://metacpan.org/pod/Text::Template) syntax.
|
||||
|
||||
perl mysqltuner.pl --silent --reportfile /tmp/result_mysqltuner.txt --template=/tmp/mymodel.tmpl
|
||||
|
||||
__Usage:__ Enable debugging information
|
||||
|
||||
perl mysqltuner.pl --debug
|
||||
|
||||
FAQ
|
||||
--
|
||||
|
||||
**Question: Will MySQLTuner fix my slow MySQL server?**
|
||||
|
||||
**No.** MySQLTuner is a read only script. It won't write to any configuration files, change the status of any daemons, or call your mother to wish her a happy birthday. It will give you an overview of your server's performance and make some basic recommendations about improvements that you can make after it completes. *Make sure you read the warning above prior to following any recommendations.*
|
||||
|
||||
**Question: Can I fire my DBA now?**
|
||||
|
||||
**MySQLTuner will not replace your DBA in any form or fashion.** If your DBA constantly takes your parking spot and steals your lunch from the fridge, then you may want to consider it - but that's your call.
|
||||
|
||||
**Question: Why does MySQLTuner keep asking me the login credentials for MySQL over and over?**
|
||||
|
||||
The script will try its best to log in via any means possible. It will check for ~/.my.cnf files, Plesk password files, and empty password root logins. If none of those are available, then you'll be prompted for a password. If you'd like the script to run in an automated fashion without user intervention, then create a .my.cnf file in your home directory which contains:
|
||||
|
||||
[client]
|
||||
user=someusername
|
||||
pass=thatuserspassword
|
||||
|
||||
Once you create it, make sure it's owned by your user and the mode on the file is 0600. This should prevent the prying eyes from getting your database login credentials under normal conditions. If a [T-1000 shows up in a LAPD uniform](https://en.wikipedia.org/wiki/T-1000) and demands your database credentials, you won't have much of an option.
|
||||
|
||||
**Question: Is there another way to secure credentials on latest MySQL and MariaDB distributions ?**
|
||||
|
||||
You could use mysql_config_editor utilities.
|
||||
|
||||
$ mysql_config_editor set --login-path=client --user=someusername --password --host=localhost
|
||||
Enter passord: ********
|
||||
$
|
||||
|
||||
At this time, ~/.mylogin.cnf has been written with appropriated rigth access.
|
||||
|
||||
To get information about stored credentials, use the following command:
|
||||
|
||||
$mysql_config_editor print
|
||||
[client]
|
||||
user = someusername
|
||||
password = *****
|
||||
host = localhost
|
||||
|
||||
**Question: What's minimum privileges needed by a specific mysqltuner user in database ?**
|
||||
|
||||
mysql>GRANT SELECT, PROCESS,EXECUTE, REPLICATION CLIENT,SHOW DATABASES,SHOW VIEW ON *.* FOR 'mysqltuner'@'localhost' identified by pwd1234;
|
||||
|
||||
**Question: It's not working on my OS! What gives?!**
|
||||
|
||||
These kinds of things are bound to happen. Here are the details I need from you in order to research the problem thoroughly:
|
||||
|
||||
* OS and OS version
|
||||
* Architecture (x86, x86_64, IA64, Commodore 64)
|
||||
* Exact MySQL version
|
||||
* Where you obtained your MySQL version (OS package, source, etc)
|
||||
* The full text of the error
|
||||
* A copy of SHOW VARIABLES and SHOW GLOBAL STATUS output (if possible)
|
||||
|
||||
**Question: How to perform a CVE vulneralibity checks ?**
|
||||
|
||||
* Download vulnerabilities.csv from this repository.
|
||||
* use option --cvefile to perform CVE checks
|
||||
|
||||
**Question: How to use mysqltuner from remote host ?**
|
||||
Thanks to [@rolandomysqldba](http://dba.stackexchange.com/users/877/rolandomysqldba)
|
||||
|
||||
* You will still have to connect like a mysql client:
|
||||
|
||||
Connection and Authentication
|
||||
|
||||
--host <hostname> Connect to a remote host to perform tests (default: localhost)
|
||||
--socket <socket> Use a different socket for a local connection
|
||||
--port <port> Port to use for connection (default: 3306)
|
||||
--user <username> Username to use for authentication
|
||||
--pass <password> Password to use for authentication
|
||||
--defaults-file <path> defaulfs file for credentials
|
||||
|
||||
Since you are using a remote host, use parameters to supply values from the OS
|
||||
|
||||
--forcemem <size> Amount of RAM installed in megabytes
|
||||
--forceswap <size> Amount of swap memory configured in megabytes
|
||||
|
||||
* You may have to contact your remote SysAdmin to ask how much RAM and swap you have
|
||||
|
||||
If the database has too many tables, or very large table, use this:
|
||||
|
||||
--skipsize Don't enumerate tables and their types/sizes (default: on)
|
||||
(Recommended for servers with many tables)
|
||||
|
||||
MySQLTuner and Vagrant
|
||||
--
|
||||
**MySQLTuner** contains following Vagrant configurations:
|
||||
* Fedora Core 23 / MariaDB 10.0
|
||||
* Fedora Core 23 / MariaDB 10.1
|
||||
* Fedora Core 23 / MySQL 5.6
|
||||
* Fedora Core 23 / MySQL 5.7
|
||||
|
||||
**Vagrant File** are stored in Vagrant subdirectory.
|
||||
* Follow this 2 steps after vagrant installation:
|
||||
* Rename VagrantFile_for_Mxxx into Vagrantfile
|
||||
* vagrant up
|
||||
|
||||
**MySQLTuner** contains a Vagrant configurations for test purpose and development
|
||||
* Install VirtualBox and Vagrant
|
||||
* https://www.virtualbox.org/wiki/Downloads
|
||||
* https://www.vagrantup.com/downloads.html
|
||||
* Clone repository
|
||||
* git clone https://github.com/major/MySQLTuner-perl.git
|
||||
* Install Vagrant plugins vagrant-hostmanager and vagrant-vbguest
|
||||
* vagrant plugin install vagrant-hostmanager
|
||||
* vagrant plugin install vagrant-vbguest
|
||||
* Add Fedora Core 23 box for official Fedora Download Website
|
||||
* vagrant box add --name fc23 https://download.fedoraproject.org/pub/fedora/linux/releases/23/Cloud/x86_64/Images/Fedora-Cloud-Base-Vagrant-23-20151030.x86_64.vagrant-virtualbox.box
|
||||
* Create a data directory
|
||||
* mkdir data
|
||||
* Rename Vagrantfile_MariaDB10.0 into Vagrantfile
|
||||
* cp MySQLTuner-perl/Vagrant/Vagrantfile_for_MariaDB10.0 Vagrantfile
|
||||
* Start vagrant
|
||||
* vagrant up
|
||||
|
||||
MySQLTuner a besoin de vous
|
||||
--
|
||||
**MySQLTuner** a besoin de contributeurs pour la documentation, le code, des tests et des retours d'expérience.
|
||||
|
||||
* Rejoignez-nous sur le suivi de ticket à [GitHub tracker](https://github.com/major/MySQLTuner-perl/issues)</a>.
|
||||
* Le guide de contribution en anglais est disponible ici [MySQLTuner contributing guide](https://github.com/major/MySQLTuner-perl/blob/master/CONTRIBUTING.md)
|
||||
* Ajouter une étoile à **MySQLTuner project** ici [MySQLTuner Git Hub Project](https://github.com/major/MySQLTuner-perl)
|
238
README.it.md
238
README.it.md
|
@ -1,238 +0,0 @@
|
|||

|
||||
|
||||
[](https://www.buymeacoffee.com/jmrenouard)
|
||||
|
||||
[](http://opensource.box.com/badges)
|
||||
[](http://opensource.box.com/badges)
|
||||
[](http://isitmaintained.com/project/major/MySQLTuner-perl "Average time to resolve an issue")
|
||||
[](http://isitmaintained.com/project/major/MySQLTuner-perl "Percentage of issues still open")
|
||||
[](https://opensource.org/licenses/GPL-3.0/)
|
||||
|
||||
**MySQLTuner** è uno script Perl che permette di analizzare velocemente una installazione di MySQL, nonché di apportare modifiche per migliorare le prestazioni e la stabilità. In modo coinciso sono riportati lo stato attuale delle variabili di configurazione e i dati sullo stato del sistema, corredati da suggerimenti di base per il miglioramento delle prestazioni.
|
||||
|
||||
**MySQLTuner** supporta, in quest'ultima versione, circa 250 indicatori per i server MySQL/MariaDB/Percona.
|
||||
|
||||
**MySQLTuner** è attivamente manutenuto e nuovi indicatori sono aggiunti di settimana in settimana, supportando un gran numero di configurazioni tra le quali , , , metriche relative al SO Linux, , , , ...
|
||||
|
||||
Maggiori dettagli sugli indicatori
|
||||
.
|
||||
|
||||
|
||||

|
||||
|
||||
MySQLTuner ha bisogno di te:
|
||||
===
|
||||
|
||||
**MySQLTuner** ha bisogno di collaboratori per documentazione, codice e suggerimenti ..
|
||||
|
||||
* Problemi e suggerimenti possono essere riportati su [GitHub tracker](https://github.com/major/MySQLTuner-perl/issues).
|
||||
* La guida per contribuire è disponibile in inglese: [MySQLTuner contributing guide](https://github.com/major/MySQLTuner-perl/blob/master/CONTRIBUTING.md)
|
||||
* Dai un Stella a **MySQLTuner project** su [GitHub](https://github.com/major/MySQLTuner-perl)
|
||||
|
||||
Compatibilità:
|
||||
====
|
||||
|
||||
* MySQL 5.7 (pieno supporto)
|
||||
* MySQL 5.6 (pieno supporto)
|
||||
* MySQL 5.5 (pieno supporto)
|
||||
* MariaDB 10.1 (pieno supporto)
|
||||
* MariaDB 10.0 (pieno supporto)
|
||||
* Percona Server 5.6 (pieno supporto)
|
||||
* Percona XtraDB cluster (pieno supporto)
|
||||
* MySQL 3.23, 4.0, 4.1, 5.0, 5.1 (supporto parziale - versione deprecata)
|
||||
* Perl 5.6 o successivi (col pacchetto [perl-doc](http://search.cpan.org/~dapm/perl-5.14.4/pod/perldoc.pod))
|
||||
* Sistemi operativi basati su Unix/Linux (testato su Linux, varianti di BSD e di Solaris)
|
||||
* Windows non è supportato al momento (gradito aiuto!!!!!)
|
||||
* Accesso completo in lettura al server MySQL (accesso root a livello di SO raccomandato per MySQL < 5.1)
|
||||
* supporto al rilevamento di vulnerabilità CVE da [https://cve.mitre.org](https://cve.mitre.org)
|
||||
|
||||
***ATTENZIONE***
|
||||
--
|
||||
È **estremamente importante** che tu capisca appieno ogni singola modifica apportata alla configurazione del server MySQL.
|
||||
Qualora non capissi appieno qualche parte dell'output dello script o se non capissi quanto raccomandato **dovresti consultare** un DBA esperto o un amministratore di sistema di cui hai fiducia.
|
||||
Testa **sempre** le modifiche su ambienti ad hoc e tieni sempre presente che miglioramenti in un settore potrebbero **influenzare negativamente** MySQL in altri settori.
|
||||
|
||||
**Seriamente - consulta la sezione FAQ che segue.**
|
||||
|
||||
Cosa verifica esattamente MySQLTuner ?
|
||||
--
|
||||
Tutti i controlli effettuati da **MySQLTuner** sono documentati in [MySQLTuner Internals](https://github.com/major/MySQLTuner-perl/blob/master/INTERNALS.md).
|
||||
|
||||
Download/Installazione
|
||||
--
|
||||
|
||||
Si può semplicemente scaricare l'intero codice utilizzando `git clone` seguito dalla URL riportata sopra.
|
||||
Il modo più semplice è il seguente:
|
||||
|
||||
wget http://mysqltuner.pl/ -O mysqltuner.pl
|
||||
wget https://raw.githubusercontent.com/major/MySQLTuner-perl/master/basic_passwords.txt -O basic_passwords.txt
|
||||
wget https://raw.githubusercontent.com/major/MySQLTuner-perl/master/vulnerabilities.csv -O vulnerabilities.csv
|
||||
perl mysqltuner.pl
|
||||
|
||||
Ovviamente è possibile assegnare il permesso di esecuzione in modo da poter lanciare il comando senza chiamare l'interprete `perl` (`chmod +x mysqltuner.pl`).
|
||||
|
||||
Casi d'uso
|
||||
--
|
||||
|
||||
__Uso:__ Minimale locale
|
||||
|
||||
perl mysqltuner.pl
|
||||
|
||||
__Uso:__ Minimale da remoto
|
||||
|
||||
perl mysqltuner.pl --host targetDNS_IP --user admin_user --pass admin_password
|
||||
|
||||
__Uso:__ Abilitando il massimo livello di informazione in output su MySQL/MariaDb senza usare l'optione di debug
|
||||
|
||||
perl mysqltuner.pl --verbose
|
||||
perl mysqltuner.pl --buffers --dbstat --idxstat --sysstat --pfstat
|
||||
|
||||
|
||||
__Uso:__ Abilitando la verifica delle vulnerabilità CVE per la versione di MariaDB o MySQL installata
|
||||
|
||||
perl mysqltuner.pl --cvefile=vulnerabilities.csv
|
||||
|
||||
__Uso:__ Salvando i risultati su un file con le stesse informazione mostrate a video
|
||||
|
||||
perl mysqltuner.pl --outputfile /tmp/result_mysqltuner.txt
|
||||
|
||||
__Uso:__ Salvando i risultati su un file **senza mostrare nulla a video**
|
||||
|
||||
perl mysqltuner.pl --silent --outputfile /tmp/result_mysqltuner.txt
|
||||
|
||||
__Uso:__ Utilizzando un modello per personalizzare il file di output, con la sintassi di [Text::Template](https://metacpan.org/pod/Text::Template).
|
||||
|
||||
perl mysqltuner.pl --silent --reportfile /tmp/result_mysqltuner.txt --template=/tmp/mymodel.tmpl
|
||||
|
||||
__Uso:__ Abilitando la modalità di debug
|
||||
|
||||
perl mysqltuner.pl --debug
|
||||
|
||||
FAQ
|
||||
--
|
||||
|
||||
**Domanda: MySQLTuner sistemerà il mio server MySQL lento?**
|
||||
|
||||
**No.** MySQLTuner è uno script che legge solamente. Non scriverà alcun file di configurazione, non modificherà lo stato di alcun demone né chiamerà tua madre per augurarle buon compleanno.
|
||||
Ti darà una panoramica delle prestazioni del tuo server, facendo alcune raccomandazioni basilari circa i miglioramenti che tu puoi apportare. *assicurati di leggere l'avviso precedente prima di seguire qualsiasi raccomandazione.*
|
||||
|
||||
**Domanda: Posso eliminare il mio DBA ora?**
|
||||
|
||||
**MySQLTuner non sostituirà il tuo DBA in alcun modo.** Se il tuo DBA continuamente occupa il tuo parcheggio e ruba il tuo cibo dal frigo puoi considerare l'opzione - ma resta una tua scelta.
|
||||
|
||||
**Domanda: Perché MySQLTuner continua a chiedermi ogni volta le credenziali di login di MySQL?**
|
||||
|
||||
Lo script cerca di arguirle in ogni modo possibile. Cercando file `~/.my.cnf`, file di password di Plesk e provando il login di root con password vuota.
|
||||
Se nessuno di questi modi ha successo, allora la password viene richiesta. Se preferisci che lo script giri in modo automatico, senza interazione con l'utente, allora crea un file `.my.cnf` nella tua cartella home che contenga:
|
||||
|
||||
[client]
|
||||
user=someusername
|
||||
pass=thatuserspassword
|
||||
|
||||
Una volta creato, assicurati che tu sia il proprietario (owner) e che i permessi siano 0600. Questo dovrebbe preservare le tue credenziali di login per i database da occhi indiscreti, in condizioni normali.
|
||||
Se un [Terminator modello T-1000 apparisse vestito da Carabiniere](https://it.wikipedia.org/wiki/T-1000) e chiedesse le tue credenziali non avresti poi tante scelte.
|
||||
|
||||
**Domanda: C'è qualche altro modo per rendere sicure le credenziali sulle ultime versioni di MySQL e MariaDB ?**
|
||||
|
||||
Potresti utilizzare il comando `mysql_config_editor`.
|
||||
|
||||
$ mysql_config_editor set --login-path=client --user=someusername --password --host=localhost
|
||||
Enter passord: ********
|
||||
$
|
||||
|
||||
Che crea il file `~/.mylogin.cnf` con i prmessi di accesso appropriati.
|
||||
|
||||
Per avere informazioni sulle credenziali salvate, si usi ilseguente comando:
|
||||
|
||||
$mysql_config_editor print
|
||||
[client]
|
||||
user = someusername
|
||||
password = *****
|
||||
host = localhost
|
||||
|
||||
**Domanda: Quali sono i privilegi minimi, nel database, necessari per un utente *mysqltuner* ad hoc ?**
|
||||
|
||||
mysql>GRANT SELECT, PROCESS,EXECUTE, REPLICATION CLIENT,SHOW DATABASES,SHOW VIEW ON *.* FOR 'mysqltuner'@'localhost' identified by pwd1234;
|
||||
|
||||
**Domanda: Non funziona sul mio SO! Che succede?!**
|
||||
|
||||
Questo genere di cose sono destinate ad accadere. Ecco i dettagli di cui ho bisogno per indagare sul problema:
|
||||
|
||||
* SO e versione del SO
|
||||
* Architettura (x86, x86_64, IA64, Commodore 64)
|
||||
* Versione esatta di MySQL
|
||||
* Da dove viene la tua versione di MySQL (pacchetto del SO, sorgenti, etc.)
|
||||
* Il testo completo dell'errore
|
||||
* L'output dei comandi `SHOW VARIABLES;` e `SHOW GLOBAL STATUS;`(se possibile)
|
||||
|
||||
**Domanda: Come eseguo il check per le vulnerabilità CVE ?**
|
||||
|
||||
* Scarica il file `vulnerabilities.csv`da questo repository.
|
||||
* Usa l'opzione `--cvefile` per eseguire i test delle CVE
|
||||
|
||||
**Domanda: Come uso mysqltuner da un altro computer ?**
|
||||
Grazie a [@rolandomysqldba](http://dba.stackexchange.com/users/877/rolandomysqldba)
|
||||
|
||||
* You will still have to connect like a mysql client:
|
||||
* Ti dovrai collegare come un client mysql:
|
||||
|
||||
Connessione e Autenticazione
|
||||
|
||||
--host <hostname> Si connette a un host remoto per eseguire i test (default: localhost)
|
||||
--socket <socket> Usa un socket per effettuare una connessione locale
|
||||
--port <port> Porta per la connessione (default: 3306)
|
||||
--user <username> Username per l'autenticazione
|
||||
--pass <password> Password per l'autenticazione
|
||||
--defaults-file <path> defaults file per le credenziali
|
||||
|
||||
Poiché si sta utilizzando un host remoto, si utilizzino i seguenti parametri per fornire allo script i valori del SO
|
||||
|
||||
--forcemem <size> Valore della RAM installata, in megabyte
|
||||
--forceswap <size> Valore della memoria di swap configurata, in megabyte
|
||||
|
||||
* Potresti dover contattare il sistemista del server remoto per conoscere i valori di RAM e swap
|
||||
|
||||
Se il database ha troppe tabelle, o tabelle veramente grandi, si usi:
|
||||
|
||||
--skipsize Non elenca le tabelle ed i rispettivi tipi e dimensioni (default: on)
|
||||
(Raccomandato per server con molte tabelle)
|
||||
|
||||
MySQLTuner e Vagrant
|
||||
--
|
||||
**MySQLTuner** contiene le seguenti configurazioni per Vagrant:
|
||||
* Fedora Core 23 / MariaDB 10.0
|
||||
* Fedora Core 23 / MariaDB 10.1
|
||||
* Fedora Core 23 / MySQL 5.6
|
||||
* Fedora Core 23 / MySQL 5.7
|
||||
|
||||
**Vagrant File** sono collocati nella sotto-directory di Vagrant.
|
||||
* Segui questi due passaggi dopo l'installazione di Vagrant:
|
||||
* Rinominare `VagrantFile_for_Mxxx` in `Vagrantfile`
|
||||
* `vagrant up`
|
||||
|
||||
**MySQLTuner** contiene una configurazione Vagrant a scopo di test e sviluppo
|
||||
* Installare VirtualBox e Vagrant
|
||||
* https://www.virtualbox.org/wiki/Downloads
|
||||
* https://www.vagrantup.com/downloads.html
|
||||
* Clone del repository
|
||||
* git clone https://github.com/major/MySQLTuner-perl.git
|
||||
* Installare i plugin di Vagrant `vagrant-hostmanager` e `vagrant-vbguest`
|
||||
* `vagrant plugin install vagrant-hostmanager`
|
||||
* `vagrant plugin install vagrant-vbguest`
|
||||
* Aggiungere un box Fedora Core 23 dal sito ufficiale di Fedora
|
||||
* `vagrant box add --name fc23 https://download.fedoraproject.org/pub/fedora/linux/releases/23/Cloud/x86_64/Images/Fedora-Cloud-Base-Vagrant-23-20151030.x86_64.vagrant-virtualbox.box`
|
||||
* Creare una directory `data`
|
||||
* `mkdir data`
|
||||
* Rinominare `Vagrantfile_MariaDB10.0` in `Vagrantfile`
|
||||
* `cp MySQLTuner-perl/Vagrant/Vagrantfile_for_MariaDB10.0 Vagrantfile`
|
||||
* Start vagrant
|
||||
* `vagrant up`
|
||||
|
||||
MySQLTuner ha bisogno di te:
|
||||
--
|
||||
|
||||
**MySQLTuner** ha bisogno di collaboratori per documentazione, codice e suggerimenti ..
|
||||
|
||||
* Problemi e suggerimenti possono essere riportati su [GitHub tracker](https://github.com/major/MySQLTuner-perl/issues).
|
||||
* La guida per contribuire è disponibile in inglese: [MySQLTuner contributing guide](https://github.com/major/MySQLTuner-perl/blob/master/CONTRIBUTING.md)
|
||||
* Dai un Stella a **MySQLTuner project** su [GitHub](https://github.com/major/MySQLTuner-perl)
|
448
README.md
448
README.md
|
@ -1,113 +1,89 @@
|
|||

|
||||
|
||||
[](https://www.buymeacoffee.com/jmrenouard)
|
||||
|
||||
====
|
||||
[](https://travis-ci.org/major/MySQLTuner-perl)
|
||||
[](http://opensource.box.com/badges)
|
||||
[](https://github.com/anuraghazra/github-readme-stats/)
|
||||
[](http://opensource.box.com/badges)
|
||||
[](http://isitmaintained.com/project/major/MySQLTuner-perl "Average time to resolve an issue")
|
||||
[](http://isitmaintained.com/project/major/MySQLTuner-perl "Percentage of issues still open")
|
||||
[](https://opensource.org/licenses/GPL-3.0/)
|
||||
|
||||
**MySQLTuner** is a script written in Perl that allows you to review a MySQL installation quickly and make adjustments to increase performance and stability. The current configuration variables and status data is retrieved and presented in a brief format along with some basic performance suggestions.
|
||||
**MySQLTuner** is a script written in Perl that allows you to review a MySQL installation quickly and make adjustments to increase performance and stability. The current configuration variables and status data is retrieved and presented in a brief format along with some basic performance suggestions.
|
||||
|
||||
**MySQLTuner** supports ~300 indicators for MySQL/MariaDB/Percona Server in this latest version.
|
||||
**MySQLTuner** supports ~300 indicators for MySQL/MariaDB/Percona Server in this last version.
|
||||
|
||||
**MySQLTuner** is actively maintained supporting many configurations such as [Galera Cluster](http://galeracluster.com/), [TokuDB](https://www.percona.com/software/mysql-database/percona-tokudb), [Performance schema](https://github.com/mysql/mysql-sys), Linux OS metrics, [InnoDB](http://dev.mysql.com/doc/refman/5.7/en/innodb-storage-engine.html), [MyISAM](http://dev.mysql.com/doc/refman/5.7/en/myisam-storage-engine.html), [Aria](https://mariadb.com/kb/en/mariadb/aria/), ...
|
||||
**MySQLTuner** is maintained and indicator collect is increasing week after week supporting a lot of configuration such as [Galera Cluster](http://galeracluster.com/), [TokuDB](https://www.percona.com/software/mysql-database/percona-tokudb), [Performance schema](https://github.com/mysql/mysql-sys), Linux OS metrics, [InnoDB](http://dev.mysql.com/doc/refman/5.7/en/innodb-storage-engine.html), [MyISAM](http://dev.mysql.com/doc/refman/5.7/en/myisam-storage-engine.html), [Aria](https://mariadb.com/kb/en/mariadb/aria/), ...
|
||||
|
||||
You can find more details on these indicators here:
|
||||
[Indicators description](https://github.com/major/MySQLTuner-perl/blob/master/INTERNALS.md).
|
||||
|
||||
|
||||

|
||||
|
||||
MySQLTuner needs you
|
||||
MySQLTuner needs you:
|
||||
===
|
||||
|
||||
**MySQLTuner** needs contributors for documentation, code and feedback:
|
||||
**MySQLTuner** needs contributors for documentation, code and feedback..
|
||||
|
||||
* Please join us on our issue tracker at [GitHub tracker](https://github.com/major/MySQLTuner-perl/issues).
|
||||
* Please join us on issue track at [GitHub tracker](https://github.com/major/MySQLTuner-perl/issues).
|
||||
* Contribution guide is available following [MySQLTuner contributing guide](https://github.com/major/MySQLTuner-perl/blob/master/CONTRIBUTING.md)
|
||||
* Star **MySQLTuner project** at [MySQLTuner Git Hub Project](https://github.com/major/MySQLTuner-perl)
|
||||
* Paid support for LightPath here: [jmrenouard@lightpath.fr](jmrenouard@lightpath.fr)
|
||||
* Paid support for Releem available here: [Releem App](https://releem.com/)
|
||||
|
||||

|
||||
|
||||
## Stargazers over time
|
||||
|
||||
[](https://starchart.cc/major/MySQLTuner-perl)
|
||||
|
||||
[](https://starcharts.herokuapp.com/major/MySQLTuner-perl)
|
||||
|
||||
Compatibility
|
||||
====
|
||||
Test result are available here: [Travis CI/MySQLTuner-perl](https://travis-ci.org/major/MySQLTuner-perl)
|
||||
* MySQL 8.0 (partial support, password checks don't work)
|
||||
* MySQL 5.7 (full support)
|
||||
* MySQL 5.6 (full support, no more MySQL support)
|
||||
* MySQL 5.5 (full support, no more MySQL support)
|
||||
* MariaDB 10.5 (full support)
|
||||
* MariaDB 10.4 (full support)
|
||||
* MariaDB 10.3 (full support)
|
||||
* MariaDB 10.2 (full support)
|
||||
* MariaDB 10.1 (full support, no more MariaDB support)
|
||||
* MariaDB 10.0 (full support, no more MariaDB support)
|
||||
* MariaDB 5.5 (full support, no more MariaDB support)
|
||||
* Percona Server 8.0 (partial support, password checks don't work)
|
||||
* Percona Server 5.7 (full support)
|
||||
* Percona Server 5.6 (full support)
|
||||
|
||||
Test result are available here:
|
||||
|
||||
* MySQL 8.0, 8.2, 8.3 (full support)
|
||||
* Percona Server 8.0, 8.2, 8.3 (full support)
|
||||
* MariaDB 10.4, 10.5, 10.6, 10.11, 11.0, 11.1, 11.2 (full support)
|
||||
* Galera replication (full support)
|
||||
* Percona XtraDB cluster (full support)
|
||||
* Percona XtraDB cluster (partial support, no test environment)
|
||||
* Mysql Replications (partial support, no test environment)
|
||||
* Galera replication (partial support, no test environment)
|
||||
|
||||
* MySQL 8.1 (not supported, deprecated version)
|
||||
* Percona Server 5.7 (not supported, deprecated version)
|
||||
* MySQL 5.7 (not supported, deprecated version)
|
||||
* MySQL 5.6 and earlier (not supported, deprecated version)
|
||||
* Percona Server 5.6 (not supported, deprecated version)
|
||||
* MariaDB 10.7, 10.8, 10.9, 10.10 (not supported, deprecated version)
|
||||
* MariaDB 10.3 and earlier (not supported, deprecated version)
|
||||
* MariaDB 5.5 (not supported, deprecated version)
|
||||
* MySQL 3.23, 4.0, 4.1, 5.0, 5.1 (partial support - deprecated version)
|
||||
|
||||
***Windows Support is partial***
|
||||
|
||||
* Windows is now supported at this time
|
||||
* Successfully run MySQLtuner across WSL2 (Windows Subsystem Linux)
|
||||
* [https://docs.microsoft.com/en-us/windows/wsl/](https://docs.microsoft.com/en-us/windows/wsl/)
|
||||
|
||||
***UNSUPPORTED ENVIRONMENTS - NEED HELP WITH THAT***
|
||||
* Cloud based is not supported at this time (Help wanted! GCP, AWS, Azure support requested)
|
||||
|
||||
***Unsupported storage engines: PRs welcome***
|
||||
--
|
||||
|
||||
* NDB is not supported feel free to create a Pull Request
|
||||
* Archive
|
||||
* Spider
|
||||
* ColummStore
|
||||
* Connect
|
||||
|
||||
Unmaintenained stuff from MySQL or MariaDB:
|
||||
--
|
||||
|
||||
* MyISAM is too old and no longer active
|
||||
* RockDB is not maintained anymore
|
||||
* TokuDB is not maintained anymore
|
||||
* XtraDB is not maintained anymore
|
||||
*** UNSUPPORTED ENVIRONMENTS - NEED HELP FOR THAT :) ***
|
||||
* Windows is not supported at this time (Help wanted !!!!!)
|
||||
* Cloud based is not supported at this time (Help wanted !!!!!)
|
||||
|
||||
* CVE vulnerabilities detection support from [https://cve.mitre.org](https://cve.mitre.org)
|
||||
|
||||
***MINIMAL REQUIREMENTS***
|
||||
*** MINIMAL REQUIREMENTS ***
|
||||
|
||||
* Perl 5.6 or later (with [perl-doc](http://search.cpan.org/~dapm/perl-5.14.4/pod/perldoc.pod) package)
|
||||
* Unix/Linux based operating system (tested on Linux, BSD variants, and Solaris variants)
|
||||
* Unrestricted read access to the MySQL server
|
||||
OS root access recommended for MySQL < 5.1
|
||||
* Unrestricted read access to the MySQL server (OS root access recommended for MySQL < 5.1)
|
||||
|
||||
***WARNING***
|
||||
--
|
||||
|
||||
It is **important** for you to fully understand each change
|
||||
It is **extremely important** for you to fully understand each change
|
||||
you make to a MySQL database server. If you don't understand portions
|
||||
of the script's output, or if you don't understand the recommendations,
|
||||
**you should consult** a knowledgeable DBA or system administrator
|
||||
that you trust. **Always** test your changes on staging environments, and
|
||||
always keep in mind that improvements in one area can **adversely affect**
|
||||
always keep in mind that improvements in one area can **negatively affect**
|
||||
MySQL in other areas.
|
||||
|
||||
It's **also important** to wait at least 24 hours of uptime to get accurate results. In fact, running
|
||||
It's **also important** to wait at least a day of uptime to get accurate results. In fact, running
|
||||
**mysqltuner** on a fresh restarted server is completely useless.
|
||||
|
||||
**Also review the FAQ section below.**
|
||||
**Seriously - please review the FAQ section below.**
|
||||
|
||||
|
||||
Security recommendations
|
||||
--
|
||||
|
@ -116,9 +92,8 @@ Hi directadmin user!
|
|||
We detected that you run mysqltuner with da_admin's credentials taken from `/usr/local/directadmin/conf/my.cnf`, which might bring to a password discovery!
|
||||
Read link for more details [Issue #289](https://github.com/major/MySQLTuner-perl/issues/289).
|
||||
|
||||
What is MySQLTuner checking exactly ?
|
||||
What MySQLTuner is checking exactly ?
|
||||
--
|
||||
|
||||
All checks done by **MySQLTuner** are documented in [MySQLTuner Internals](https://github.com/major/MySQLTuner-perl/blob/master/INTERNALS.md) documentation.
|
||||
|
||||
Download/Installation
|
||||
|
@ -128,7 +103,7 @@ Choose one of these methods:
|
|||
|
||||
1) Script direct download (the simplest and shortest method):
|
||||
|
||||
```bash
|
||||
```
|
||||
wget http://mysqltuner.pl/ -O mysqltuner.pl
|
||||
wget https://raw.githubusercontent.com/major/MySQLTuner-perl/master/basic_passwords.txt -O basic_passwords.txt
|
||||
wget https://raw.githubusercontent.com/major/MySQLTuner-perl/master/vulnerabilities.csv -O vulnerabilities.csv
|
||||
|
@ -140,317 +115,99 @@ Optional Sysschema installation for MySQL 5.6
|
|||
--
|
||||
|
||||
Sysschema is installed by default under MySQL 5.7 and MySQL 8 from Oracle.
|
||||
By default, on MySQL 5.6/5.7/8, performance schema is enabled.
|
||||
For previous MySQL 5.6 version, you can follow this command to create a new database sys containing very useful view on Performance schema:
|
||||
By default, on MySQL 5.6/5.7/8, performance schema is enabled by default.
|
||||
For previous 5.6 version, you can follow this command to create a new database sys containing very useful view on Performance schema:
|
||||
|
||||
Sysschema for MySQL old version
|
||||
curl "https://codeload.github.com/mysql/mysql-sys/zip/master" > sysschema.zip
|
||||
# check zip file
|
||||
unzip -l sysschema.zip
|
||||
unzip sysschema.zip
|
||||
cd mysql-sys-master
|
||||
mysql -uroot -p < sys_56.sql
|
||||
|
||||
Optional Performance schema and Sysschema installation for MariaDB 10.x
|
||||
--
|
||||
|
||||
```bash
|
||||
curl "https://codeload.github.com/mysql/mysql-sys/zip/master" > sysschema.zip
|
||||
# check zip file
|
||||
unzip -l sysschema.zip
|
||||
unzip sysschema.zip
|
||||
cd mysql-sys-master
|
||||
mysql -uroot -p < sys_56.sql
|
||||
```
|
||||
Sysschema is not installed by default under MariaDB 10.x.
|
||||
By default, on MariaDB, performance schema is disabled by default. consider activating performance schema across your my.cnf configuration file:
|
||||
|
||||
Sysschema for MariaDB old version
|
||||
--
|
||||
[mysqld]
|
||||
performance_schema = on
|
||||
|
||||
```bash
|
||||
curl "https://github.com/FromDual/mariadb-sys/archive/refs/heads/master.zip" > sysschema.zip
|
||||
# check zip file
|
||||
unzip -l sysschema.zip
|
||||
unzip sysschema.zip
|
||||
cd mariadb-sys-master
|
||||
mysql -u root -p < ./sys_10.sql
|
||||
```
|
||||
You can follow this command to create a new database sys containing very useful view on Performance schema:
|
||||
|
||||
Performance schema setup
|
||||
--
|
||||
|
||||
By default, performance_schema is enabled and sysschema is installed on latest version.
|
||||
|
||||
By default, on MariaDB, performance schema is disabled (MariaDB<10.6).
|
||||
|
||||
Consider activating performance schema across your my.cnf configuration file:
|
||||
|
||||
```ini
|
||||
[mysqld]
|
||||
performance_schema = on
|
||||
performance-schema-consumer-events-statements-history-long = ON
|
||||
performance-schema-consumer-events-statements-history = ON
|
||||
performance-schema-consumer-events-statements-current = ON
|
||||
performance-schema-consumer-events-stages-current=ON
|
||||
performance-schema-consumer-events-stages-history=ON
|
||||
performance-schema-consumer-events-stages-history-long=ON
|
||||
performance-schema-consumer-events-transactions-current=ON
|
||||
performance-schema-consumer-events-transactions-history=ON
|
||||
performance-schema-consumer-events-transactions-history-long=ON
|
||||
performance-schema-consumer-events-waits-current=ON
|
||||
performance-schema-consumer-events-waits-history=ON
|
||||
performance-schema-consumer-events-waits-history-long=ON
|
||||
performance-schema-instrument='%=ON'
|
||||
max-digest-length=2048
|
||||
performance-schema-max-digest-length=2018
|
||||
```
|
||||
|
||||
Sysschema installation for MariaDB < 10.6
|
||||
--
|
||||
|
||||
Sysschema is not installed by default under MariaDB prior to 10.6 [MariaDB sys](https://mariadb.com/kb/en/sys-schema/)
|
||||
|
||||
You can follow this command to create a new database sys containing a useful view on Performance schema:
|
||||
|
||||
```bash
|
||||
curl "https://codeload.github.com/FromDual/mariadb-sys/zip/master" > mariadb-sys.zip
|
||||
# check zip file
|
||||
unzip -l mariadb-sys.zip
|
||||
unzip mariadb-sys.zip
|
||||
cd mariadb-sys-master/
|
||||
mysql -u root -p < ./sys_10.sql
|
||||
```
|
||||
curl "https://codeload.github.com/FromDual/mariadb-sys/zip/master" > mariadb-sys.zip
|
||||
# check zip file
|
||||
unzip -l mariadb-sys.zip
|
||||
unzip mariadb-sys.zip
|
||||
cd mariadb-sys-master/
|
||||
mysql -u root -p < ./sys_10.sql
|
||||
|
||||
Errors & solutions for performance schema installation
|
||||
|
||||
ERROR at line 21: Failed to open file './tables/sys_config_data_10.sql -- ported', error: 2
|
||||
Have a look at #452 solution given by @ericx
|
||||
|
||||
Performance tips
|
||||
--
|
||||
Metadata statistic updates can impact strongly performance of database servers and MySQLTuner.
|
||||
Be sure that innodb_stats_on_metadata is disabled.
|
||||
|
||||
|
||||
ERROR 1054 (42S22) at line 78 in file: './views/p_s/metrics_56.sql': Unknown column 'STATUS' in 'field list'
|
||||
--
|
||||
|
||||
|
||||
This error can be safely ignored
|
||||
Consider using a recent MySQL/MariaDB version to avoid this kind of issue during sysschema installation
|
||||
|
||||
In recent versions, sysschema is installed and integrated by default as sys schema (SHOW DATABASES)
|
||||
|
||||
|
||||
|
||||
ERROR at line 21: Failed to open file './tables/sys_config_data_10.sql -- ported', error: 2
|
||||
Have a look at #452 solution given by @ericx
|
||||
--
|
||||
|
||||
Fixing sysctl configuration (/etc/sysctl.conf)
|
||||
|
||||
--
|
||||
It is a system wide setting and not a database setting: [Linux FS Kernel settings](https://www.kernel.org/doc/html/latest/admin-guide/sysctl/fs.html#id1)
|
||||
|
||||
You can check its values via:
|
||||
|
||||
```bash
|
||||
$ cat /proc/sys/fs/aio-*
|
||||
65536
|
||||
2305
|
||||
```
|
||||
|
||||
For example, to set the aio-max-nr value, add the following line to the /etc/sysctl.conf file:
|
||||
|
||||
```bash
|
||||
fs.aio-max-nr = 1048576
|
||||
```
|
||||
|
||||
To activate the new setting:
|
||||
|
||||
```bash
|
||||
$ sysctl -p /etc/sysctl.conf
|
||||
```
|
||||
set global innodb_stats_on_metadata = 0;
|
||||
|
||||
Specific usage
|
||||
--
|
||||
|
||||
__Usage:__ Minimal usage locally
|
||||
|
||||
```bash
|
||||
perl mysqltuner.pl --host 127.0.0.1
|
||||
```
|
||||
perl mysqltuner.pl --host 127.0.0.1
|
||||
|
||||
Of course, you can add the execute bit (`chmod +x mysqltuner.pl`) so you can execute it without calling Perl directly.
|
||||
Of course, you can add the execute bit (`chmod +x mysqltuner.pl`) so you can execute it without calling perl directly.
|
||||
|
||||
__Usage:__ Minimal usage remotely
|
||||
|
||||
In previous version, --forcemem shoud be set manually, in order to be able to run an MySQLTuner analysis
|
||||
|
||||
Since 2.1.10, memory and swap are defined to 1Gb by default.
|
||||
|
||||
If you want a more accurate value according to your remote server, feel free to setup --forcemem and --forceswap to real RAM value
|
||||
|
||||
```bash
|
||||
perl mysqltuner.pl --host targetDNS_IP --user admin_user --pass admin_password
|
||||
```
|
||||
perl mysqltuner.pl --host targetDNS_IP --user admin_user --pass admin_password
|
||||
|
||||
__Usage:__ Enable maximum output information around MySQL/MariaDb without debugging
|
||||
|
||||
```bash
|
||||
perl mysqltuner.pl --verbose
|
||||
perl mysqltuner.pl --buffers --dbstat --idxstat --sysstat --pfstat --tbstat
|
||||
```
|
||||
perl mysqltuner.pl --verbose
|
||||
perl mysqltuner.pl --buffers --dbstat --idxstat --sysstat --pfstat --tbstat
|
||||
|
||||
|
||||
__Usage:__ Enable CVE vulnerabilities check for your MariaDB or MySQL version
|
||||
|
||||
```bash
|
||||
perl mysqltuner.pl --cvefile=vulnerabilities.csv
|
||||
```
|
||||
perl mysqltuner.pl --cvefile=vulnerabilities.csv
|
||||
|
||||
__Usage:__ Write your result in a file with information displayed
|
||||
|
||||
```bash
|
||||
perl mysqltuner.pl --outputfile /tmp/result_mysqltuner.txt
|
||||
```
|
||||
perl mysqltuner.pl --outputfile /tmp/result_mysqltuner.txt
|
||||
|
||||
__Usage:__ Write your result in a file **without outputting information**
|
||||
|
||||
```bash
|
||||
perl mysqltuner.pl --silent --outputfile /tmp/result_mysqltuner.txt
|
||||
```
|
||||
perl mysqltuner.pl --silent --outputfile /tmp/result_mysqltuner.txt
|
||||
|
||||
__Usage:__ Using template model to customize your reporting file based on [Text::Template](https://metacpan.org/pod/Text::Template) syntax.
|
||||
|
||||
```bash
|
||||
perl mysqltuner.pl --silent --reportfile /tmp/result_mysqltuner.txt --template=/tmp/mymodel.tmpl
|
||||
```
|
||||
|
||||
__Important__: [Text::Template](https://metacpan.org/pod/Text::Template) module is mandatory for `--reportfile` and/or `--template` options, because this module is needed to generate appropriate output based on a text template.
|
||||
|
||||
|
||||
__Usage:__ Dumping all information_schema and sysschema views as csv file into results subdirectory
|
||||
|
||||
```bash
|
||||
perl mysqltuner.pl --verbose --dumpdir=./result
|
||||
```
|
||||
|
||||
perl mysqltuner.pl --silent --reportfile /tmp/result_mysqltuner.txt --template=/tmp/mymodel.tmpl
|
||||
|
||||
__Usage:__ Enable debugging information
|
||||
|
||||
```bash
|
||||
perl mysqltuner.pl --debug
|
||||
```
|
||||
perl mysqltuner.pl --debug
|
||||
|
||||
__Usage:__ Update MySQLTuner and data files (password and cve) if needed
|
||||
|
||||
```bash
|
||||
perl mysqltuner.pl --checkversion --updateversion
|
||||
```
|
||||
|
||||
HTML reports based on Python Jinja2
|
||||
--
|
||||
|
||||
HTML generation is based on Python/Jinja2
|
||||
|
||||
**HTML generation Procedure**
|
||||
|
||||
- Generate mysqltuner.pl report using JSON format (--json)
|
||||
- Generate HTML report using j2 python tools
|
||||
|
||||
**Jinja2 Templates are located under templates sub directory**
|
||||
|
||||
A basic example is called basic.html.j2
|
||||
|
||||
**Installation Python j2**
|
||||
|
||||
```bash
|
||||
python -mvenv j2
|
||||
source ./j2/bin/activate
|
||||
(j2) pip install j2
|
||||
```
|
||||
|
||||
**Using Html report generation**
|
||||
|
||||
```bash
|
||||
perl mysqltuner.pl --verbose --json > reports.json
|
||||
cat reports.json j2 -f json MySQLTuner-perl/templates/basic.html.j2 > variables.html
|
||||
```
|
||||
|
||||
or
|
||||
|
||||
```bash
|
||||
perl mysqltuner.pl --verbose --json | j2 -f json MySQLTuner-perl/templates/basic.html.j2 > variables.html
|
||||
```
|
||||
|
||||
HTML reports based on AHA
|
||||
--
|
||||
|
||||
HTML generation is based on AHA
|
||||
|
||||
**HTML generation Procedure**
|
||||
|
||||
- Generate mysqltuner.pl report using standard text reports
|
||||
- Generate HTML report using aha
|
||||
|
||||
**Installation Aha**
|
||||
|
||||
Follow instructions from Github repo
|
||||
|
||||
[GitHub AHA main repository](https://github.com/theZiz/aha)
|
||||
|
||||
**Using AHA Html report generation**
|
||||
|
||||
perl mysqltuner.pl --verbose --color > reports.txt
|
||||
aha --black --title "MySQLTuner" -f "reports.txt" > "reports.html"
|
||||
|
||||
or
|
||||
|
||||
perl mysqltuner.pl --verbose --color | aha --black --title "MySQLTuner" > reports.html
|
||||
|
||||
perl mysqltuner.pl --checkversion --updateversion
|
||||
|
||||
FAQ
|
||||
--
|
||||
**Question: What are the prerequisites for running MySQL tuner ?**
|
||||
|
||||
Before running MySQL tuner, you should have the following:
|
||||
**Question: Will MySQLTuner fix my slow MySQL server?**
|
||||
|
||||
- A MySQL server installation
|
||||
- Perl installed on your system
|
||||
- Administrative access to your MySQL server
|
||||
|
||||
**Question: Can MySQL tuner make changes to my configuration automatically ?**
|
||||
|
||||
**No.**, MySQL tuner only provides recommendations. It does not make any changes to your configuration files automatically. It is up to the user to review the suggestions and implement them as needed.
|
||||
|
||||
**Question: How often should I run MySQL tuner ?**
|
||||
|
||||
It is recommended to run MySQL tuner periodically, especially after significant changes to your MySQL server or its workload.
|
||||
|
||||
For optimal results, run the script after your server has been running for at least 24 hours to gather sufficient performance data.
|
||||
|
||||
**Question: How do I interpret the results from MySQL tuner ?**
|
||||
|
||||
MySQL tuner provides output in the form of suggestions and warnings.
|
||||
|
||||
Review each recommendation and consider implementing the changes in your MySQL configuration file (usually 'my.cnf' or 'my.ini').
|
||||
|
||||
Be cautious when making changes and always backup your configuration file before making any modifications.
|
||||
|
||||
**Question: Can MySQL tuner cause harm to my database or server ?**
|
||||
|
||||
While MySQL tuner itself will not make any changes to your server, blindly implementing its recommendations without understanding the impact can cause issues.
|
||||
|
||||
Always ensure you understand the implications of each suggestion before applying it to your server.
|
||||
|
||||
**Question: Can I use MySQL tuner for optimizing other database systems like PostgreSQL or SQL Server ?**
|
||||
|
||||
MySQL tuner is specifically designed for MySQL servers.
|
||||
To optimize other database systems, you would need to use tools designed for those systems, such as pgTune for PostgreSQL or SQL Server's built-in performance tools.
|
||||
|
||||
**Question: Does MySQL tuner support MariaDB and Percona Server ?**
|
||||
|
||||
Yes, MySQL tuner supports MariaDB and Percona Server since they are derivatives of MySQL and share a similar architecture. The script can analyze and provide recommendations for these systems as well.
|
||||
|
||||
**Question: What should I do if I need help with MySQL tuner or have questions about the recommendations ?**
|
||||
|
||||
If you need help with MySQL tuner or have questions about the recommendations provided by the script, you can consult the MySQL tuner documentation, seek advice from online forums, or consult a MySQL expert.
|
||||
|
||||
Be cautious when implementing changes to ensure the stability and performance of your server.
|
||||
|
||||
**Question: Will MySQLTuner fix my slow MySQL server ?**
|
||||
|
||||
**No.** MySQLTuner is a read only script. It won't write to any configuration files, change the status of any daemons. It will give you an overview of your server's performance and make some basic recommendations for improvements that you can make after it completes.
|
||||
**No.** MySQLTuner is a read only script. It won't write to any configuration files, change the status of any daemons, or call your mother to wish her a happy birthday. It will give you an overview of your server's performance and make some basic recommendations for improvements that you can make after it completes. *Make sure you read the warning above prior to following any recommendations.*
|
||||
|
||||
**Question: Can I fire my DBA now?**
|
||||
|
||||
**MySQLTuner will not replace your DBA in any form or fashion.**
|
||||
|
||||
If your DBA constantly takes your parking spot and steals your lunch from the fridge, then you may want to consider it - but that's your call.
|
||||
**MySQLTuner will not replace your DBA in any form or fashion.** If your DBA constantly takes your parking spot and steals your lunch from the fridge, then you may want to consider it - but that's your call.
|
||||
|
||||
**Question: Why does MySQLTuner keep asking me the login credentials for MySQL over and over?**
|
||||
|
||||
|
@ -460,7 +217,7 @@ The script will try its best to log in via any means possible. It will check fo
|
|||
user=someusername
|
||||
password=thatuserspassword
|
||||
|
||||
Once you create it, make sure it's owned by your user and the mode on the file is 0600. This should prevent the prying eyes from getting your database login credentials under normal conditions.
|
||||
Once you create it, make sure it's owned by your user and the mode on the file is 0600. This should prevent the prying eyes from getting your database login credentials under normal conditions. If a [T-1000 shows up in a LAPD uniform](https://en.wikipedia.org/wiki/T-1000) and demands your database credentials, you won't have much of an option.
|
||||
|
||||
**Question: Is there another way to secure credentials on latest MySQL and MariaDB distributions ?**
|
||||
|
||||
|
@ -473,26 +230,19 @@ After which, `~/.mylogin.cnf` will be created with the appropriate access.
|
|||
|
||||
To get information about stored credentials, use the following command:
|
||||
|
||||
```bash
|
||||
$mysql_config_editor print
|
||||
[client]
|
||||
user = someusername
|
||||
password = *****
|
||||
host = localhost
|
||||
```
|
||||
$mysql_config_editor print
|
||||
[client]
|
||||
user = someusername
|
||||
password = *****
|
||||
host = localhost
|
||||
|
||||
**Question: What's minimum privileges needed by a specific mysqltuner user in database ?**
|
||||
|
||||
```bash
|
||||
mysql>GRANT SELECT, PROCESS,EXECUTE, REPLICATION CLIENT,
|
||||
SHOW DATABASES,SHOW VIEW
|
||||
ON *.*
|
||||
TO 'mysqltuner'@'localhost' identified by pwd1234;
|
||||
```
|
||||
mysql>GRANT SELECT, PROCESS,EXECUTE, REPLICATION CLIENT,SHOW DATABASES,SHOW VIEW ON *.* TO 'mysqltuner'@'localhost' identified by pwd1234;
|
||||
|
||||
**Question: It's not working on my OS! What gives?!**
|
||||
|
||||
These kinds of things are bound to happen. Here are the details I need from you to investigate the issue:
|
||||
These kinds of things are bound to happen. Here are the details I need from you in order to research the problem thoroughly:
|
||||
|
||||
* OS and OS version
|
||||
* Architecture (x86, x86_64, IA64, Commodore 64)
|
||||
|
@ -600,13 +350,21 @@ MySQLTuner and Vagrant
|
|||
d985820667c2 mysql:8.0 "docker-entrypoint.s…" 7 hours ago Up 7 hours 0.0.0.0:3306->3306/tcp, 33060/tcp mysql 8 0
|
||||
|
||||
|
||||
MySQLTuner needs you
|
||||
--
|
||||
**MySQLTuner** needs contributors for documentation, code and feedback..
|
||||
|
||||
* Please join us on issue track at [GitHub tracker](https://github.com/major/MySQLTuner-perl/issues).
|
||||
* Contribution guide is available following [MySQLTuner contributing guide](https://github.com/major/MySQLTuner-perl/blob/master/CONTRIBUTING.md)
|
||||
* Star **MySQLTuner project** at [MySQLTuner Git Hub Project](https://github.com/major/MySQLTuner-perl)
|
||||
|
||||
Contributions welcome !
|
||||
--
|
||||
|
||||
How to contribute using Pull Request ? Follow this guide : [Pull request creation](https://opensource.com/article/19/7/create-pull-request-github)
|
||||
|
||||
Simple steps to create a pull request:
|
||||
--
|
||||
--
|
||||
|
||||
- Fork this Github project
|
||||
- Clone it to your local system
|
||||
|
@ -615,3 +373,5 @@ Simple steps to create a pull request:
|
|||
- Push it back to your repo
|
||||
- Click the Compare & pull request button
|
||||
- Click Create pull request to open a new pull request
|
||||
|
||||
SAVE TO CACHER
|
||||
|
|
356
README.ru.md
356
README.ru.md
|
@ -1,356 +0,0 @@
|
|||

|
||||
|
||||
[](https://www.buymeacoffee.com/jmrenouard)
|
||||
|
||||
[](http://opensource.box.com/badges)
|
||||
[](http://opensource.box.com/badges)
|
||||
[](http://isitmaintained.com/project/major/MySQLTuner-perl "Average time to resolve an issue")
|
||||
[](http://isitmaintained.com/project/major/MySQLTuner-perl "Percentage of issues still open")
|
||||
[](https://opensource.org/licenses/GPL-3.0/)
|
||||
|
||||
|
||||
**MySQLTuner** - это скрипт, написанный на Perl, который позволяет быстро произвести осмотр текущего состояния сервера баз данных MySQL
|
||||
и составить рекомендации для увеличения производительности и стабильности работы. Выводятся текущие параметры конфигурации
|
||||
и информация о состоянии в формате отчета с основными подсказками по оптимизации.
|
||||
|
||||
**MySQLTuner** поддерживает порядка 300 показателей для MySQL/MariaDB/Percona Server последних версий.
|
||||
|
||||
**MySQLTuner** поддерживает сбор показателей для множества таких конфигураций, как [Galera Cluster](http://galeracluster.com/), [TokuDB](https://www.percona.com/software/mysql-database/percona-tokudb), [Performance schema](https://github.com/mysql/mysql-sys), метрики ОС Linux, [InnoDB](http://dev.mysql.com/doc/refman/5.7/en/innodb-storage-engine.html), [MyISAM](http://dev.mysql.com/doc/refman/5.7/en/myisam-storage-engine.html), [Aria](https://mariadb.com/kb/en/mariadb/aria/), ...
|
||||
|
||||
|
||||
Вы можете найти больше информации об этих показателях на
|
||||
[Indicators description](https://github.com/major/MySQLTuner-perl/blob/master/INTERNALS.md).
|
||||
|
||||
|
||||

|
||||
|
||||
MySQLTuner нуждается в вас:
|
||||
===
|
||||
|
||||
**MySQLTuner** нуждается в вашем вкладе в документацию и код, а так же ждёт обратную связь.
|
||||
|
||||
* Присоединяйтесь, пожалуйста, к нашему трекеру ошибок [GitHub tracker](https://github.com/major/MySQLTuner-perl/issues).
|
||||
* Руководство по поддержке проекта доступно на [MySQLTuner contributing guide](https://github.com/major/MySQLTuner-perl/blob/master/CONTRIBUTING.md)
|
||||
* Ставьте "звезды" **проекту MySQLTuner** на [MySQLTuner Git Hub Project](https://github.com/major/MySQLTuner-perl)
|
||||
|
||||
## Количество "звезд" по времени
|
||||
|
||||
[](https://starchart.cc/major/MySQLTuner-perl)
|
||||
|
||||
Совместимость
|
||||
====
|
||||
Результаты тестов:
|
||||
* MySQL 8 (полная поддержка, проверка пароля не работает)
|
||||
* MySQL 5.7 (полная поддержка)
|
||||
* MySQL 5.6 (полная поддержка)
|
||||
* MySQL 5.5 (полная поддержка)
|
||||
* MariaDB 10.4 (полная поддержка)
|
||||
* MariaDB 10.3 (полная поддержка)
|
||||
* MariaDB 10.2 (полная поддержка)
|
||||
* MariaDB 10.1 (полная поддержка)
|
||||
* MariaDB 10.0 (полная поддержка, последние 6 месяцeв)
|
||||
* MariaDB 5.5 (полная поддержка, но без поддержки от MariaDB)
|
||||
* Percona Server 8.0 (полная поддержка, проверка пароля не работает)
|
||||
* Percona Server 5.7 (полная поддержка)
|
||||
* Percona Server 5.6 (полная поддержка)
|
||||
* Percona XtraDB cluster (частичная поддержка, нет тестового окружения)
|
||||
|
||||
* Mysql Replications (частичная поддержка, нет тестового окружения)
|
||||
* Galera replication (частичная поддержка, нет тестового окружения)
|
||||
|
||||
* MySQL 3.23, 4.0, 4.1, 5.0, 5.1, 5.5 (частичная поддержка - устаревшие версии)
|
||||
|
||||
*** НЕ ПОДДЕРЖИВАЕМЫЕ ОКРУЖЕНИЯ - НУЖНА ПОМОЩЬ С НИМИ :) ***
|
||||
* Windows не поддерживается на данное время (Необходима помощь!!!!!)
|
||||
* Облачные сервисы(cloud based) не поддерживаются на данное время (Необходима помощь!!!!!)
|
||||
|
||||
* Поддержка детектирования CVE уязвимостей из [https://cve.mitre.org](https://cve.mitre.org)
|
||||
|
||||
*** МИНИМАЛЬНЫЕ ТРЕБОВАНИЯ ***
|
||||
|
||||
* Perl 5.6 или более поздний (с пакетом [perl-doc](http://search.cpan.org/~dapm/perl-5.14.4/pod/perldoc.pod))
|
||||
* Операционная система семейства Unix/Linux (протестировано на Linux, различных вариациях BSD и Solaris)
|
||||
* Неограниченный доступ на чтение для MySQL-сервера (Для работы с MySQL < 5.1 требуется root-доступ к серверу)
|
||||
|
||||
Пожалуйста, прочитайте раздел ЧаВо, который расположен чуть ниже.
|
||||
|
||||
***ПРЕДУПРЕЖДЕНИЕ***
|
||||
--
|
||||
Очень важно, чтобы вы имели представление о том, какие изменения вы
|
||||
вносите в параметры сервера баз данных MySQL. Если вы даже частично
|
||||
не понимаете вывод отчета скрипта, или не понимаете рекомендации,
|
||||
которые делает скрипт, то вам лучше всего обратиться за помощью либо
|
||||
к документации к серверу баз данных, либо ближайшему системному
|
||||
администратору. Всегда проверяйте ваши изменения на тестовом сервере
|
||||
и всегда будьте готовы к тому, что улучшения в одной области могут иметь
|
||||
отрицательный эфект в работе MySQL в другой области.
|
||||
|
||||
Так же **важно** подождать, что бы сервер баз данных отработал хотя бы день, для получения точных реультатов. Запуск **mysqltuner** на только что перезапущенном сервере баз данных, по факту полностью бесполезен.
|
||||
|
||||
**Серьезно - прочитайте раздел ЧаВо, который расположен чуть ниже.**
|
||||
|
||||
|
||||
Рекомендации по безопасности
|
||||
--
|
||||
|
||||
Здравствуй, пользователь directadmin!
|
||||
Мы обнаружили, что запуск mysqltuner с доступами da_admin, взятыми из файла `/usr/local/directadmin/conf/my.cnf`, может привести к компрометации пароля!
|
||||
Детали можно прочитать по ссылке [Issue #289](https://github.com/major/MySQLTuner-perl/issues/289).
|
||||
|
||||
|
||||
Что именно проверяет MySQLTuner?
|
||||
--
|
||||
Все проверки, что выполняет **MySQLTuner**, задокументированы в [MySQLTuner Internals](https://github.com/major/MySQLTuner-perl/blob/master/INTERNALS.md)
|
||||
|
||||
Загрузка/Установка
|
||||
--
|
||||
|
||||
Доступны несколько методов:
|
||||
1) Прямая загрузка скрипта(самый простой и короткий метод):
|
||||
```
|
||||
wget http://mysqltuner.pl/ -O mysqltuner.pl
|
||||
wget https://raw.githubusercontent.com/major/MySQLTuner-perl/master/basic_passwords.txt -O basic_passwords.txt
|
||||
wget https://raw.githubusercontent.com/major/MySQLTuner-perl/master/vulnerabilities.csv -O vulnerabilities.csv
|
||||
```
|
||||
|
||||
2) Вы можете скачать весь репозиторий с помощью `git clone` или `git clone --depth 1 -b master` c URL текущего репозитория.
|
||||
|
||||
|
||||
Оциональная установка Sysschema для MySQL 5.6
|
||||
--
|
||||
|
||||
Sysschema по умолчанию установлена на MySQL 5.7 и MySQL 8 от Oracle.
|
||||
В MySQL 5.6/5.7/8 по умолчанию performance schema включена.
|
||||
Для версий старше 5.6 вы можете создать новую базу данных sys, содержащую очень полезный взгляд на Performance schema следующими командами:
|
||||
|
||||
curl "https://codeload.github.com/mysql/mysql-sys/zip/master" > sysschema.zip
|
||||
# check zip file
|
||||
unzip -l sysschema.zip
|
||||
unzip sysschema.zip
|
||||
cd mysql-sys-master
|
||||
mysql -uroot -p < sys_56.sql
|
||||
|
||||
Опциональная установка Performance schema и Sysschema для MariaDB 10.x
|
||||
--
|
||||
|
||||
Sysschema не установлена по умолчанию на MariaDB 10.x.
|
||||
А performance schema по умолчанию отключена в MariaDB. Для активации ее требуется включить в конфигурационном файле my.cnf:
|
||||
|
||||
[mysqld]
|
||||
performance_schema = on
|
||||
|
||||
Вы можете создать новую базу данных sys, содержащую очень полезный взгляд на Performance schema следующими командами:
|
||||
|
||||
curl "https://codeload.github.com/FromDual/mariadb-sys/zip/master" > mariadb-sys.zip
|
||||
# check zip file
|
||||
unzip -l mariadb-sys.zip
|
||||
unzip mariadb-sys.zip
|
||||
cd mariadb-sys-master/
|
||||
mysql -u root -p < ./sys_10.sql
|
||||
|
||||
Ошибки и их решения при установке performance schema
|
||||
|
||||
ERROR at line 21: Failed to open file './tables/sys_config_data_10.sql -- ported', error: 2
|
||||
Посмотрите на #452 решение, данное @ericx
|
||||
|
||||
Примеры использования
|
||||
--
|
||||
|
||||
__Пример:__ Минимальный локальный запуск
|
||||
|
||||
perl mysqltuner.pl --host 127.0.0.1
|
||||
|
||||
Конечно, вам нужно будет добавить права на выполнение скрипта (chmod +x mysqltuner.pl), если вы хотите запускать его напрямую, без указания perl.
|
||||
|
||||
__Пример:__ Минимальный удаленный запуск
|
||||
|
||||
perl mysqltuner.pl --host targetDNS_IP --user admin_user --pass admin_password
|
||||
|
||||
__Пример:__ Включение максимамльного вывода информации о MySQL/MariaDb без отладочной информации
|
||||
|
||||
perl mysqltuner.pl --verbose
|
||||
perl mysqltuner.pl --buffers --dbstat --idxstat --sysstat --pfstat --tbstat
|
||||
|
||||
|
||||
__Пример:__ Включение проверки на CVE уязвимости для MariaDB или MySQL
|
||||
|
||||
perl mysqltuner.pl --cvefile=vulnerabilities.csv
|
||||
|
||||
__Пример:__ Запись результата в файл с отображением информации
|
||||
|
||||
perl mysqltuner.pl --outputfile /tmp/result_mysqltuner.txt
|
||||
|
||||
__Пример:__ Запись результата в файл **без вывода информации**
|
||||
|
||||
perl mysqltuner.pl --silent --outputfile /tmp/result_mysqltuner.txt
|
||||
|
||||
__Пример:__ Использование шаблона для кастомизации отчетов, сохраняющихся в файл на базе синтаксиса [Text::Template](https://metacpan.org/pod/Text::Template).
|
||||
|
||||
perl mysqltuner.pl --silent --reportfile /tmp/result_mysqltuner.txt --template=/tmp/mymodel.tmpl
|
||||
|
||||
__Пример:__ Включение вывода отладочной информации
|
||||
|
||||
perl mysqltuner.pl --debug
|
||||
|
||||
__Пример:__ Обновление MySQLTuner и файлов с данными (пароль и cve), если необходимо.
|
||||
|
||||
perl mysqltuner.pl --checkversion --updateversion
|
||||
|
||||
ЧаВо
|
||||
--
|
||||
|
||||
**Вопрос: MySQLTuner починит мой медленный MySQL сервер?**
|
||||
|
||||
**Нет.** MySQLTuner работает только на чтение. Он не будет записывать какие-либо конфигурационные файлы, изменять статус каких-либо демонов или звонить вашей маме, чтобы поздравить её с днём рождения. Он только даст обзор производительности вашего сервера и предложит несколько базовых рекомендаций, которые вы можете выполнить. *Убедитесь, что вы прочитали предупреждения до следования рекомендациям.*
|
||||
|
||||
**Вопрос: Теперь я могу уволить моего DBA?**
|
||||
|
||||
**MySQLTuner не заменяет вашего DBA никоим образом.** Однако, если ваш DBA постоянно занимает ваше парковочное место и крадёт ваш обед из холодильника, вы можете попробовать сделать это - но это будет ваш выбор.
|
||||
|
||||
**Вопрос: Почему MySQLTuner каждый раз запрашивает доступы в MySQL?**
|
||||
|
||||
Скрипт пытается использовать лучшие способы войти из возможных. Он проверяет ~/.my.cnf файлы, файлы паролей Plesk и пробует пустой пароль для пользователя root. Если ни один из этих способов не сработал, то запрашивается ввод пароля. Если вы хотите, чтобы скрипт работал автоматически, создайте в своей домашней директории файл .my.cnf, содержащий:
|
||||
|
||||
[client]
|
||||
user=distributions
|
||||
password=thatuserspassword
|
||||
|
||||
Сразу после создания файла убедитесь, что его владельцем является ваш пользователь, а права на файл - 0600. Это защитит ваш логин и пароль от базы данных от любопытных глаз в нормальных условиях. Но у вас не будет выбора, если появится [T-1000 в униформе полицейского из Лос-Анджелеса](https://ru.wikipedia.org/wiki/T-1000) и потребует доступы от вашей базы данных.
|
||||
|
||||
**Вопрос: Есть ли другой способ безопасно сохранить данные для входа в последних версиях MySQL и MariaDB?**
|
||||
Вы можете использовать утилиту mysql_config_editor.
|
||||
~~~bash
|
||||
$ mysql_config_editor set --login-path=client --user=someusername --password --host=localhost
|
||||
Enter passord: ********
|
||||
~~~
|
||||
Она создаст `~/.mylogin.cnf` с корректными правами доступа.
|
||||
|
||||
Чтобы получить информацию о сохраненных данных для входа, выполните:
|
||||
|
||||
$mysql_config_editor print
|
||||
[client]
|
||||
user = someusername
|
||||
password = *****
|
||||
host = localhost
|
||||
|
||||
**Вопрос: Какие минимальные привелегии нужны для специального пользователя базы данных mysqltuner?**
|
||||
|
||||
mysql>GRANT SELECT, PROCESS,EXECUTE, REPLICATION CLIENT,SHOW DATABASES,SHOW VIEW ON *.* TO 'mysqltuner'@'localhost' identified by pwd1234;
|
||||
|
||||
**Вопрос: Это не работает на моей ОС! Что делать?!**
|
||||
|
||||
Иногда такое случается. Чтобы тщательно исследовать проблему, необходимы следующие данные:
|
||||
|
||||
* ОС и версия ОС
|
||||
* Архитектура (x86, x86_64, IA64, Commodore 64)
|
||||
* Точная версия MySQL
|
||||
* Где вы взяли данную версию MySQL(OS package, source, etc)
|
||||
* Полный текст ошибки
|
||||
* Копия вывода SHOW VARIABLES и SHOW GLOBAL STATUS (если это возможно)
|
||||
|
||||
**Вопрос: Как выполнить проверку на CVE уязвимости?**
|
||||
|
||||
* Скачать vulnerabilities.csv с этого репозитория.
|
||||
* Использовать опцию --cvefile для проверки
|
||||
|
||||
**Вопрос: Как использовать mysqltuner с удалённого хоста?**
|
||||
Спасибо [@rolandomysqldba](http://dba.stackexchange.com/users/877/rolandomysqldba)
|
||||
|
||||
* Вы можете подключиться так же, как для обычного mysql-клиета:
|
||||
|
||||
Подключение и аутентификация.
|
||||
|
||||
--host <hostname> Connect to a remote host to perform tests (default: localhost)
|
||||
--socket <socket> Use a different socket for a local connection
|
||||
--port <port> Port to use for connection (default: 3306)
|
||||
--user <username> Username to use for authentication
|
||||
--pass <password> Password to use for authentication
|
||||
--defaults-file <path> defaulfs file for credentials
|
||||
|
||||
Так как вы используете удалённый хост, используйте параметры для указания данных об ОС
|
||||
|
||||
--forcemem <size> Количество оперативной памяти в мегабайтах
|
||||
--forceswap <size> Количество swap памяти в мегабайтах
|
||||
|
||||
* Вы можете обратиться к вашему системному администратору, чтобы спросить, сколько оперативной памяти и swap'а вам доступно
|
||||
|
||||
Если у баз слишком много таблиц, или есть очень большие таблицы, используйте опцию
|
||||
|
||||
--skipsize Don't enumerate tables and their types/sizes (default: on)
|
||||
(Recommended for servers with many tables)
|
||||
|
||||
**Вопрос: Я могу установить этот проект с помощью homebrew на Apple Macintosh?**
|
||||
|
||||
Да! Вы можете уставновить его командой `brew install mysqltuner` с помощью [homebrew](https://brew.sh/) на Apple Macintosh.
|
||||
|
||||
MySQLTuner и Vagrant
|
||||
--
|
||||
**MySQLTuner** содержится в следующих конфигурациях Vagrant:
|
||||
* Fedora Core 10 / Docker
|
||||
|
||||
**Vagrant File** is stored in Vagrant subdirectory.
|
||||
* Follow following step after vagrant installation:
|
||||
$ vagrant up
|
||||
|
||||
**MySQLTuner** contains a Vagrant configurations for test purpose and development
|
||||
* Install VirtualBox and Vagrant
|
||||
* https://www.virtualbox.org/wiki/Downloads
|
||||
* https://www.vagrantup.com/downloads.html
|
||||
* Clone repository
|
||||
* git clone https://github.com/major/MySQLTuner-perl.git
|
||||
* Install Vagrant plugins vagrant-hostmanager and vagrant-vbguest
|
||||
* vagrant plugin install vagrant-hostmanager
|
||||
* vagrant plugin install vagrant-vbguest
|
||||
* Add Fedora Core 30 box for official Fedora Download Website
|
||||
* vagrant box add --name generic/fedora30
|
||||
* Create a data directory
|
||||
* mkdir data
|
||||
|
||||
|
||||
## Настройка тестовых окружений
|
||||
|
||||
$ sh build/createTestEnvs.sh
|
||||
|
||||
$ source build/bashrc
|
||||
$ mysql_percona80 sakila
|
||||
sakila> ...
|
||||
|
||||
$ docker images
|
||||
mariadb 10.1 fc612450e1f1 12 days ago 352MB
|
||||
mariadb 10.2 027b7c57b8c6 12 days ago 340MB
|
||||
mariadb 10.3 47dff68107c4 12 days ago 343MB
|
||||
mariadb 10.4 92495405fc36 12 days ago 356MB
|
||||
mysql 5.6 95e0fc47b096 2 weeks ago 257MB
|
||||
mysql 5.7 383867b75fd2 2 weeks ago 373MB
|
||||
mysql 8.0 b8fd9553f1f0 2 weeks ago 445MB
|
||||
percona/percona-server 5.7 ddd245ed3496 5 weeks ago 585MB
|
||||
percona/percona-server 5.6 ed0a36e0cf1b 6 weeks ago 421MB
|
||||
percona/percona-server 8.0 390ae97d57c6 6 weeks ago 697MB
|
||||
mariadb 5.5 c7bf316a4325 4 months ago 352MB
|
||||
mariadb 10.0 d1bde56970c6 4 months ago 353MB
|
||||
mysql 5.5 d404d78aa797 4 months ago 205MB
|
||||
|
||||
$ docker ps
|
||||
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
|
||||
da2be9b050c9 mariadb:5.5 "docker-entrypoint.s…" 7 hours ago Up 7 hours 0.0.0.0:5311->3306/tcp mariadb55
|
||||
5deca25d5ac8 mariadb:10.0 "docker-entrypoint.s…" 7 hours ago Up 7 hours 0.0.0.0:5310->3306/tcp mariadb100
|
||||
73aaeb37e2c2 mariadb:10.1 "docker-entrypoint.s…" 7 hours ago Up 7 hours 0.0.0.0:5309->3306/tcp mariadb101
|
||||
72ffa77e01ec mariadb:10.2 "docker-entrypoint.s…" 7 hours ago Up 7 hours 0.0.0.0:5308->3306/tcp mariadb102
|
||||
f5996f2041df mariadb:10.3 "docker-entrypoint.s…" 7 hours ago Up 7 hours 0.0.0.0:5307->3306/tcp mariadb103
|
||||
4890c52372bb mariadb:10.4 "docker-entrypoint.s…" 7 hours ago Up 7 hours 0.0.0.0:5306->3306/tcp mariadb104
|
||||
6b9dc078e921 percona/percona-server:5.6 "/docker-entrypoint.…" 7 hours ago Up 7 hours 0.0.0.0:4308->3306/tcp percona56
|
||||
3a4c7c826d4c percona/percona-server:5.7 "/docker-entrypoint.…" 7 hours ago Up 7 hours 0.0.0.0:4307->3306/tcp percona57
|
||||
3dda408c91b0 percona/percona-server:8.0 "/docker-entrypoint.…" 7 hours ago Up 7 hours 33060/tcp, 0.0.0.0:4306->3306/tcp percona80
|
||||
600a4e7e9dcd mysql:5.5 "docker-entrypoint.s…" 7 hours ago Up 7 hours 0.0.0.0:3309->3306/tcp mysql55
|
||||
4bbe54342e5d mysql:5.6 "docker-entrypoint.s…" 7 hours ago Up 7 hours 0.0.0.0:3308->3306/tcp mysql56
|
||||
a49783249a11 mysql:5.7 "docker-entrypoint.s…" 7 hours ago Up 7 hours 33060/tcp, 0.0.0.0:3307->3306/tcp mysql57
|
||||
d985820667c2 mysql:8.0 "docker-entrypoint.s…" 7 hours ago Up 7 hours 0.0.0.0:3306->3306/tcp, 33060/tcp mysql 8 0
|
||||
|
||||
MySQLTuner нуждается в Вас:
|
||||
===
|
||||
|
||||
**MySQLTuner** нуждается в вашем вкладе в документацию и код, а так же ждёт обратную связь.
|
||||
|
||||
* Присоединяйтесь, пожалуйста, к нашему трекеру ошибок [GitHub tracker](https://github.com/major/MySQLTuner-perl/issues).
|
||||
* Руководство по поддержке проекта доступно на [MySQLTuner contributing guide](https://github.com/major/MySQLTuner-perl/blob/master/CONTRIBUTING.md)
|
||||
* Ставьте "звезды" **проекту MySQLTuner** на [MySQLTuner Git Hub Project](https://github.com/major/MySQLTuner-perl)
|
21
SECURITY.md
21
SECURITY.md
|
@ -1,21 +0,0 @@
|
|||
# Security Policy
|
||||
|
||||
## Supported Versions
|
||||
|
||||
Use this section to tell people about which versions of your project are
|
||||
currently being supported with security updates.
|
||||
|
||||
| Version | Supported |
|
||||
| ------- | ------------------ |
|
||||
| 5.1.x | :white_check_mark: |
|
||||
| 5.0.x | :x: |
|
||||
| 4.0.x | :white_check_mark: |
|
||||
| < 4.0 | :x: |
|
||||
|
||||
## Reporting a Vulnerability
|
||||
|
||||
Use this section to tell people how to report a vulnerability.
|
||||
|
||||
Tell them where to go, how often they can expect to get an update on a
|
||||
reported vulnerability, what to expect if the vulnerability is accepted or
|
||||
declined, etc.
|
171
USAGE.md
171
USAGE.md
|
@ -1,171 +0,0 @@
|
|||
# NAME
|
||||
|
||||
MySQLTuner 2.6.0 - MySQL High Performance Tuning Script
|
||||
|
||||
# IMPORTANT USAGE GUIDELINES
|
||||
|
||||
To run the script with the default options, run the script without arguments
|
||||
Allow MySQL server to run for at least 24-48 hours before trusting suggestions
|
||||
Some routines may require root level privileges (script will provide warnings)
|
||||
You must provide the remote server's total memory when connecting to other servers
|
||||
|
||||
# CONNECTION AND AUTHENTICATION
|
||||
|
||||
--host <hostname> Connect to a remote host to perform tests (default: localhost)
|
||||
--socket <socket> Use a different socket for a local connection
|
||||
--port <port> Port to use for connection (default: 3306)
|
||||
--protocol tcp Force TCP connection instead of socket
|
||||
--user <username> Username to use for authentication
|
||||
--userenv <envvar> Name of env variable which contains username to use for authentication
|
||||
--pass <password> Password to use for authentication
|
||||
--passenv <envvar> Name of env variable which contains password to use for authentication
|
||||
--ssl-ca <path> Path to public key
|
||||
--mysqladmin <path> Path to a custom mysqladmin executable
|
||||
--mysqlcmd <path> Path to a custom mysql executable
|
||||
--defaults-file <path> Path to a custom .my.cnf
|
||||
--defaults-extra-file <path> Path to an extra custom config file
|
||||
--server-log <path> Path to explicit log file (error_log)
|
||||
|
||||
# PERFORMANCE AND REPORTING OPTIONS
|
||||
|
||||
--skipsize Don't enumerate tables and their types/sizes (default: on)
|
||||
(Recommended for servers with many tables)
|
||||
--json Print result as JSON string
|
||||
--prettyjson Print result as JSON formatted string
|
||||
--skippassword Don't perform checks on user passwords (default: off)
|
||||
--checkversion Check for updates to MySQLTuner (default: don't check)
|
||||
--updateversion Check for updates to MySQLTuner and update when newer version is available (default: don't check)
|
||||
--forcemem <size> Amount of RAM installed in megabytes
|
||||
--forceswap <size> Amount of swap memory configured in megabytes
|
||||
--passwordfile <path> Path to a password file list (one password by line)
|
||||
--cvefile <path> CVE File for vulnerability checks
|
||||
--outputfile <path> Path to a output txt file
|
||||
--reportfile <path> Path to a report txt file
|
||||
--template <path> Path to a template file
|
||||
--dumpdir <path> Path to a directory where to dump information files
|
||||
--feature <feature> Run a specific feature (see FEATURES section)
|
||||
--dumpdir <path> information_schema tables and sys views are dumped in CSV in this path
|
||||
|
||||
# OUTPUT OPTIONS
|
||||
|
||||
--silent Don't output anything on screen
|
||||
--verbose Print out all options (default: no verbose, dbstat, idxstat, sysstat, tbstat, pfstat)
|
||||
--color Print output in color
|
||||
--nocolor Don't print output in color
|
||||
--nogood Remove OK responses
|
||||
--nobad Remove negative/suggestion responses
|
||||
--noinfo Remove informational responses
|
||||
--debug Print debug information
|
||||
--experimental Print experimental analysis (may fail)
|
||||
--nondedicated Consider server is not dedicated to Db server usage only
|
||||
--noprocess Consider no other process is running
|
||||
--dbstat Print database information
|
||||
--nodbstat Don't print database information
|
||||
--tbstat Print table information
|
||||
--notbstat Don't print table information
|
||||
--colstat Print column information
|
||||
--nocolstat Don't print column information
|
||||
--idxstat Print index information
|
||||
--noidxstat Don't print index information
|
||||
--nomyisamstat Don't print MyIsam information
|
||||
--sysstat Print system information
|
||||
--nosysstat Don't print system information
|
||||
--nostructstat Don't print table structures information
|
||||
--pfstat Print Performance schema
|
||||
--nopfstat Don't print Performance schema
|
||||
--bannedports Ports banned separated by comma (,)
|
||||
--server-log Define specific error_log to analyze
|
||||
--maxportallowed Number of open ports allowable on this host
|
||||
--buffers Print global and per-thread buffer values
|
||||
|
||||
# PERLDOC
|
||||
|
||||
You can find documentation for this module with the perldoc command.
|
||||
|
||||
perldoc mysqltuner
|
||||
|
||||
## INTERNALS
|
||||
|
||||
[https://github.com/major/MySQLTuner-perl/blob/master/INTERNALS.md](https://github.com/major/MySQLTuner-perl/blob/master/INTERNALS.md)
|
||||
|
||||
Internal documentation
|
||||
|
||||
# AUTHORS
|
||||
|
||||
Major Hayden - major@mhtx.net
|
||||
Jean-Marie Renouard - jmrenouard@gmail.com
|
||||
|
||||
# CONTRIBUTORS
|
||||
|
||||
- Matthew Montgomery
|
||||
- Paul Kehrer
|
||||
- Dave Burgess
|
||||
- Jonathan Hinds
|
||||
- Mike Jackson
|
||||
- Nils Breunese
|
||||
- Shawn Ashlee
|
||||
- Luuk Vosslamber
|
||||
- Ville Skytta
|
||||
- Trent Hornibrook
|
||||
- Jason Gill
|
||||
- Mark Imbriaco
|
||||
- Greg Eden
|
||||
- Aubin Galinotti
|
||||
- Giovanni Bechis
|
||||
- Bill Bradford
|
||||
- Ryan Novosielski
|
||||
- Michael Scheidell
|
||||
- Blair Christensen
|
||||
- Hans du Plooy
|
||||
- Victor Trac
|
||||
- Everett Barnes
|
||||
- Tom Krouper
|
||||
- Gary Barrueto
|
||||
- Simon Greenaway
|
||||
- Adam Stein
|
||||
- Isart Montane
|
||||
- Baptiste M.
|
||||
- Cole Turner
|
||||
- Major Hayden
|
||||
- Joe Ashcraft
|
||||
- Jean-Marie Renouard
|
||||
- Stephan GroBberndt
|
||||
- Christian Loos
|
||||
- Long Radix
|
||||
|
||||
# SUPPORT
|
||||
|
||||
Bug reports, feature requests, and downloads at http://mysqltuner.pl/
|
||||
|
||||
Bug tracker can be found at https://github.com/major/MySQLTuner-perl/issues
|
||||
|
||||
Maintained by Jean-Marie Renouard (jmrenouard\\@gmail.com) - Licensed under GPL
|
||||
|
||||
# SOURCE CODE
|
||||
|
||||
[https://github.com/major/MySQLTuner-perl](https://github.com/major/MySQLTuner-perl)
|
||||
|
||||
git clone https://github.com/major/MySQLTuner-perl.git
|
||||
|
||||
# COPYRIGHT AND LICENSE
|
||||
|
||||
Copyright (C) 2006-2023 Major Hayden - major@mhtx.net
|
||||
\# Copyright (C) 2015-2023 Jean-Marie Renouard - jmrenouard@gmail.com
|
||||
|
||||
For the latest updates, please visit http://mysqltuner.pl/
|
||||
|
||||
Git repository available at https://github.com/major/MySQLTuner-perl
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||
|
||||
See the GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
71
Vagrant/Vagrantfile
vendored
71
Vagrant/Vagrantfile
vendored
|
@ -1,71 +0,0 @@
|
|||
# -*- mode: ruby -*-
|
||||
# vi: set ft=ruby :
|
||||
|
||||
Vagrant.configure("2") do |config|
|
||||
config.vm.box = "generic/fedora30"
|
||||
config.vm.network "private_network", ip: "192.168.50.10", virtualbox__intnet: false
|
||||
|
||||
if Vagrant.has_plugin? "vagrant-vbguest"
|
||||
config.vbguest.no_install = true
|
||||
config.vbguest.auto_update = false
|
||||
config.vbguest.no_remote = true
|
||||
end
|
||||
config.hostmanager.enabled = true
|
||||
config.hostmanager.manage_host = false
|
||||
config.hostmanager.manage_guest = true
|
||||
config.hostmanager.ignore_private_ip = false
|
||||
config.hostmanager.include_offline = true
|
||||
|
||||
config.vm.network "public_network"
|
||||
config.vm.hostname = 'fedora-generic'
|
||||
config.hostmanager.aliases = %w(fedora-generic.localdomain fedora-generic.local fcg.local)
|
||||
|
||||
config.vm.synced_folder ".", "/data"
|
||||
|
||||
config.vm.provider "virtualbox" do |vb|
|
||||
vb.name="fedora-generic"
|
||||
vb.gui = false
|
||||
vb.memory = "3036"
|
||||
vb.cpus = 4
|
||||
end
|
||||
|
||||
config.vm.provision "shell", inline: <<-SHELL
|
||||
echo "secret" | sudo passwd --stdin root
|
||||
echo "secret" | sudo passwd --stdin vagrant
|
||||
sudo cp -pr ~vagrant/.ssh /root
|
||||
sudo chown -R root.root /root/.ssh
|
||||
|
||||
sudo dnf -y update
|
||||
sudo dnf -y install telnet vim-enhanced net-tools git python python2-pip python34-PyYAML moreutils net-tools python-psutil perl-WWW-Mechanize-GZip perl-App-cpanminus perl-List-MoreUtils vim-enhanced unzip zip jq youtube-dl ffmpeg make mariadb psmisc PyYAML tofrodos python3 chromedriver wget
|
||||
sudo dnf -y install python34-pip moreutils net-tools python-psutil perl-WWW-Mechanize-GZip perl-App-cpanminus perl-List-MoreUtils vim-enhanced unzip zip jq youtube-dl ffmpeg make mariadb psmisc PyYAML tofrodos python3 wget python-beautifulsoup4 npm rclone golang yum-utils device-mapper-persistent-data lvm2 docker
|
||||
|
||||
echo "alias h='function hdi(){ howdoi \$* -c -n 5; }; hdi'" >> /tmp/util.sh
|
||||
echo "alias s=sudo" >> /tmp/util.sh
|
||||
echo "alias h=history" >> /tmp/util.sh
|
||||
echo "alias hserver='python -m http.server 8000'" >> /tmp/util.sh
|
||||
sudo cp /tmp/util.sh /etc/profile.d
|
||||
cat /tmp/util.sh
|
||||
|
||||
sudo dnf install -y yum-utils device-mapper-persistent-data lvm2
|
||||
sudo dnf -y install dnf-plugins-core
|
||||
sudo dnf config-manager \
|
||||
--add-repo \
|
||||
https://download.docker.com/linux/fedora/docker-ce.repo
|
||||
|
||||
sudo dnf -y install docker-ce docker-ce-cli containerd.io
|
||||
dnf list docker-ce --showduplicates | sort -r
|
||||
|
||||
sudo systemctl start docker
|
||||
sudo systemctl enable docker
|
||||
sudo usermod -aG docker vagrant
|
||||
sudo systemctl daemon-reload
|
||||
|
||||
true
|
||||
|
||||
##########################################
|
||||
# Install container
|
||||
sudo systemctl restart docker
|
||||
SHELL
|
||||
config.vm.provision :hostmanager
|
||||
end
|
||||
|
|
@ -1,9 +0,0 @@
|
|||
#!/bin/sh
|
||||
VERSION=${1:-"10.4"}
|
||||
rm -f Vagrantfile
|
||||
cp Vagrantfile_for_MariaDB${VERSION} Vagrantfile
|
||||
mkdir data
|
||||
vagrant plugin install vagrant-hostmanager
|
||||
vagrant plugin install vagrant-vbguest
|
||||
vagrant plugin install vagrant-proxyconf
|
||||
vagrant --provision up
|
|
@ -1,620 +0,0 @@
|
|||
1
|
||||
123456
|
||||
porsche
|
||||
firebird
|
||||
prince
|
||||
rosebud
|
||||
2
|
||||
pa#sword
|
||||
guitar
|
||||
butter
|
||||
beach
|
||||
jaguar
|
||||
3
|
||||
12345678
|
||||
chelsea
|
||||
united
|
||||
amateur
|
||||
great
|
||||
4
|
||||
1234
|
||||
black
|
||||
turtle
|
||||
7777777
|
||||
cool
|
||||
5
|
||||
p#ssy
|
||||
diamond
|
||||
steelers
|
||||
muffin
|
||||
cooper
|
||||
6
|
||||
12345
|
||||
nascar
|
||||
tiffany
|
||||
redsox
|
||||
1313
|
||||
7
|
||||
dragon
|
||||
jackson
|
||||
zxcvbn
|
||||
star
|
||||
scorpio
|
||||
8
|
||||
qwerty
|
||||
cameron
|
||||
tomcat
|
||||
testing
|
||||
mountain
|
||||
9
|
||||
696969
|
||||
654321
|
||||
golf
|
||||
shannon
|
||||
madison
|
||||
10
|
||||
mustang
|
||||
computer
|
||||
bond007
|
||||
murphy
|
||||
987654
|
||||
11
|
||||
letmein
|
||||
amanda
|
||||
bear
|
||||
frank
|
||||
brazil
|
||||
12
|
||||
baseball
|
||||
wizard
|
||||
tiger
|
||||
hannah
|
||||
lauren
|
||||
13
|
||||
master
|
||||
xxxxxxxx
|
||||
doctor
|
||||
dave
|
||||
japan
|
||||
14
|
||||
michael
|
||||
money
|
||||
gateway
|
||||
eagle1
|
||||
naked
|
||||
15
|
||||
football
|
||||
phoenix
|
||||
gators
|
||||
11111
|
||||
squirt
|
||||
16
|
||||
shadow
|
||||
mickey
|
||||
angel
|
||||
mother
|
||||
stars
|
||||
17
|
||||
monkey
|
||||
bailey
|
||||
junior
|
||||
nathan
|
||||
apple
|
||||
18
|
||||
abc123
|
||||
knight
|
||||
thx1138
|
||||
raiders
|
||||
alexis
|
||||
19
|
||||
pa#s
|
||||
iceman
|
||||
porno
|
||||
steve
|
||||
aaaa
|
||||
20
|
||||
f#ckme
|
||||
tigers
|
||||
badboy
|
||||
forever
|
||||
bonnie
|
||||
21
|
||||
6969
|
||||
purple
|
||||
debbie
|
||||
angela
|
||||
peaches
|
||||
22
|
||||
jordan
|
||||
andrea
|
||||
spider
|
||||
viper
|
||||
jasmine
|
||||
23
|
||||
harley
|
||||
horny
|
||||
melissa
|
||||
ou812
|
||||
kevin
|
||||
24
|
||||
ranger
|
||||
dakota
|
||||
booger
|
||||
jake
|
||||
matt
|
||||
25
|
||||
iwantu
|
||||
aaaaaa
|
||||
1212
|
||||
lovers
|
||||
qwertyui
|
||||
26
|
||||
jennifer
|
||||
player
|
||||
flyers
|
||||
suckit
|
||||
danielle
|
||||
27
|
||||
hunter
|
||||
sunshine
|
||||
fish
|
||||
gregory
|
||||
beaver
|
||||
28
|
||||
f#ck
|
||||
morgan
|
||||
porn
|
||||
buddy
|
||||
4321
|
||||
29
|
||||
2000
|
||||
starwars
|
||||
matrix
|
||||
whatever
|
||||
4128
|
||||
30
|
||||
test
|
||||
boomer
|
||||
teens
|
||||
young
|
||||
runner
|
||||
31
|
||||
batman
|
||||
cowboys
|
||||
scooby
|
||||
nicholas
|
||||
swimming
|
||||
32
|
||||
trustno1
|
||||
edward
|
||||
jason
|
||||
lucky
|
||||
dolphin
|
||||
33
|
||||
thomas
|
||||
charles
|
||||
walter
|
||||
helpme
|
||||
gordon
|
||||
34
|
||||
tigger
|
||||
girls
|
||||
c#mshot
|
||||
jackie
|
||||
casper
|
||||
35
|
||||
robert
|
||||
booboo
|
||||
boston
|
||||
monica
|
||||
stupid
|
||||
36
|
||||
access
|
||||
coffee
|
||||
braves
|
||||
midnight
|
||||
shit
|
||||
37
|
||||
love
|
||||
xxxxxx
|
||||
yankee
|
||||
college
|
||||
saturn
|
||||
38
|
||||
buster
|
||||
bulldog
|
||||
lover
|
||||
baby
|
||||
gemini
|
||||
39
|
||||
1234567
|
||||
ncc1701
|
||||
barney
|
||||
c#nt
|
||||
apples
|
||||
40
|
||||
soccer
|
||||
rabbit
|
||||
victor
|
||||
brian
|
||||
august
|
||||
41
|
||||
hockey
|
||||
peanut
|
||||
tucker
|
||||
mark
|
||||
3333
|
||||
42
|
||||
killer
|
||||
john
|
||||
princess
|
||||
startrek
|
||||
canada
|
||||
43
|
||||
george
|
||||
johnny
|
||||
mercedes
|
||||
sierra
|
||||
blazer
|
||||
44
|
||||
sexy
|
||||
gandalf
|
||||
5150
|
||||
leather
|
||||
c#mming
|
||||
45
|
||||
andrew
|
||||
spanky
|
||||
doggie
|
||||
232323
|
||||
hunting
|
||||
46
|
||||
charlie
|
||||
winter
|
||||
zzzzzz
|
||||
4444
|
||||
kitty
|
||||
47
|
||||
superman
|
||||
brandy
|
||||
gunner
|
||||
beavis
|
||||
rainbow
|
||||
48
|
||||
a#shole
|
||||
compaq
|
||||
horney
|
||||
bigc#ck
|
||||
112233
|
||||
49
|
||||
f#ckyou
|
||||
carlos
|
||||
bubba
|
||||
happy
|
||||
arthur
|
||||
50
|
||||
dallas
|
||||
tennis
|
||||
2112
|
||||
sophie
|
||||
cream
|
||||
51
|
||||
jessica
|
||||
james
|
||||
fred
|
||||
ladies
|
||||
calvin
|
||||
52
|
||||
panties
|
||||
mike
|
||||
johnson
|
||||
naughty
|
||||
shaved
|
||||
53
|
||||
pepper
|
||||
brandon
|
||||
xxxxx
|
||||
giants
|
||||
surfer
|
||||
54
|
||||
1111
|
||||
fender
|
||||
tits
|
||||
booty
|
||||
samson
|
||||
55
|
||||
austin
|
||||
anthony
|
||||
member
|
||||
blonde
|
||||
kelly
|
||||
56
|
||||
william
|
||||
blowme
|
||||
boobs
|
||||
f#cked
|
||||
paul
|
||||
57
|
||||
daniel
|
||||
ferrari
|
||||
donald
|
||||
golden
|
||||
mine
|
||||
58
|
||||
golfer
|
||||
cookie
|
||||
bigdaddy
|
||||
0
|
||||
king
|
||||
59
|
||||
summer
|
||||
chicken
|
||||
bronco
|
||||
fire
|
||||
racing
|
||||
60
|
||||
heather
|
||||
maverick
|
||||
penis
|
||||
sandra
|
||||
5555
|
||||
61
|
||||
hammer
|
||||
chicago
|
||||
voyager
|
||||
pookie
|
||||
eagle
|
||||
62
|
||||
yankees
|
||||
joseph
|
||||
rangers
|
||||
packers
|
||||
hentai
|
||||
63
|
||||
joshua
|
||||
diablo
|
||||
birdie
|
||||
einstein
|
||||
newyork
|
||||
64
|
||||
maggie
|
||||
sexsex
|
||||
trouble
|
||||
dolphins
|
||||
little
|
||||
65
|
||||
biteme
|
||||
hardcore
|
||||
white
|
||||
redwings
|
||||
66
|
||||
enter
|
||||
666666
|
||||
topgun
|
||||
chevy
|
||||
smith
|
||||
67
|
||||
ashley
|
||||
willie
|
||||
bigtits
|
||||
winston
|
||||
sticky
|
||||
68
|
||||
thunder
|
||||
welcome
|
||||
bitches
|
||||
warrior
|
||||
cocacola
|
||||
69
|
||||
cowboy
|
||||
chris
|
||||
green
|
||||
sammy
|
||||
animal
|
||||
70
|
||||
silver
|
||||
panther
|
||||
super
|
||||
slut
|
||||
broncos
|
||||
71
|
||||
richard
|
||||
yamaha
|
||||
qazwsx
|
||||
8675309
|
||||
private
|
||||
72
|
||||
f#cker
|
||||
justin
|
||||
magic
|
||||
zxcvbnm
|
||||
skippy
|
||||
73
|
||||
orange
|
||||
banana
|
||||
lakers
|
||||
nipples
|
||||
marvin
|
||||
74
|
||||
merlin
|
||||
driver
|
||||
rachel
|
||||
power
|
||||
blondes
|
||||
75
|
||||
michelle
|
||||
marine
|
||||
slayer
|
||||
victoria
|
||||
enjoy
|
||||
76
|
||||
corvette
|
||||
angels
|
||||
scott
|
||||
asdfgh
|
||||
girl
|
||||
77
|
||||
bigdog
|
||||
fishing
|
||||
2222
|
||||
vagina
|
||||
apollo
|
||||
78
|
||||
cheese
|
||||
david
|
||||
asdf
|
||||
toyota
|
||||
parker
|
||||
79
|
||||
matthew
|
||||
maddog
|
||||
video
|
||||
travis
|
||||
qwert
|
||||
80
|
||||
121212
|
||||
hooters
|
||||
london
|
||||
hotdog
|
||||
time
|
||||
81
|
||||
patrick
|
||||
wilson
|
||||
7777
|
||||
paris
|
||||
sydney
|
||||
82
|
||||
martin
|
||||
butthead
|
||||
marlboro
|
||||
rock
|
||||
women
|
||||
83
|
||||
freedom
|
||||
dennis
|
||||
srinivas
|
||||
xxxx
|
||||
voodoo
|
||||
84
|
||||
ginger
|
||||
f#cking
|
||||
internet
|
||||
extreme
|
||||
magnum
|
||||
85
|
||||
bl#wjob
|
||||
captain
|
||||
action
|
||||
redskins
|
||||
juice
|
||||
86
|
||||
nicole
|
||||
bigdick
|
||||
carter
|
||||
erotic
|
||||
abgrtyu
|
||||
87
|
||||
sparky
|
||||
chester
|
||||
jasper
|
||||
dirty
|
||||
777777
|
||||
88
|
||||
yellow
|
||||
smokey
|
||||
monster
|
||||
ford
|
||||
dreams
|
||||
89
|
||||
camaro
|
||||
xavier
|
||||
teresa
|
||||
freddy
|
||||
maxwell
|
||||
90
|
||||
secret
|
||||
steven
|
||||
jeremy
|
||||
arsenal
|
||||
music
|
||||
91
|
||||
dick
|
||||
viking
|
||||
11111111
|
||||
access14
|
||||
rush2112
|
||||
92
|
||||
falcon
|
||||
snoopy
|
||||
bill
|
||||
wolf
|
||||
russia
|
||||
93
|
||||
taylor
|
||||
blue
|
||||
crystal
|
||||
nipple
|
||||
scorpion
|
||||
94
|
||||
111111
|
||||
eagles
|
||||
peter
|
||||
iloveyou
|
||||
rebecca
|
||||
95
|
||||
131313
|
||||
winner
|
||||
p#ssies
|
||||
alex
|
||||
tester
|
||||
96
|
||||
123123
|
||||
samantha
|
||||
c#ck
|
||||
florida
|
||||
mistress
|
||||
97
|
||||
bitch
|
||||
house
|
||||
beer
|
||||
eric
|
||||
phantom
|
||||
98
|
||||
hello
|
||||
miller
|
||||
rocket
|
||||
legend
|
||||
billy
|
||||
99
|
||||
scooter
|
||||
flower
|
||||
theman
|
||||
movie
|
||||
6666
|
||||
100
|
||||
please
|
||||
jack
|
||||
oliver
|
||||
success
|
||||
albert
|
||||
mysql
|
||||
MySQL
|
||||
dba
|
||||
mypass
|
||||
mypasswd
|
||||
mypassword
|
||||
MyNewPass
|
||||
some_pass
|
||||
admin_pass
|
||||
obscure
|
||||
password
|
||||
new_password
|
||||
new_password1
|
||||
new_password2
|
||||
root-password
|
||||
root
|
||||
toor
|
||||
administrator
|
||||
Administrator
|
||||
Admin@123
|
||||
Admin@@123
|
115
build/bashrc
115
build/bashrc
|
@ -1,115 +0,0 @@
|
|||
# Some Alias
|
||||
alias h=history
|
||||
alias s=sudo
|
||||
alias rsh='ssh -l root'
|
||||
alias lh='ls -lsh'
|
||||
alias ll='ls -ls'
|
||||
alias la='ls -lsa'
|
||||
|
||||
alias gst='git status'
|
||||
alias grm='git rm -f'
|
||||
alias gadd='git add'
|
||||
alias gcm='git commit -m'
|
||||
alias gps='git push'
|
||||
alias gpl='git pull'
|
||||
alias glg='git log'
|
||||
alias gmh='git log --follow -p --'
|
||||
alias gbl='git blame'
|
||||
alias grs='git reset --soft HEAD~1'
|
||||
alias grh='git reset --hard HEAD~1'
|
||||
alias serve="python -m $(python -c 'import sys; print("http.server" if sys.version_info[:2] > (2,7) else "SimpleHTTPServer")')"
|
||||
|
||||
|
||||
gunt() {
|
||||
git status | \
|
||||
grep -vE '(Changes to be committed:| to publish your local commits|git add|git restore|On branch|Your branch|Untracked files|nclude in what will b|but untracked files present|no changes added to commit|modified:|deleted:|Changes not staged for commit)' |\
|
||||
sort | uniq | \
|
||||
xargs -n 1 $*
|
||||
}
|
||||
|
||||
alias gam='git status | grep "modified" | cut -d: -f2 | xargs -n 1 git add'
|
||||
|
||||
gad() {
|
||||
git status | \
|
||||
grep 'deleted:' | \
|
||||
cut -d: -f2- | \
|
||||
sort | uniq | \
|
||||
xargs -n 1 git rm -f
|
||||
}
|
||||
|
||||
dcmd()
|
||||
{
|
||||
docker exec -i -t $1 bash
|
||||
}
|
||||
|
||||
gen_mysqlalias()
|
||||
{
|
||||
input="$1"
|
||||
|
||||
while IFS='' read -r line
|
||||
do
|
||||
[ -z "$line" ] && continue
|
||||
container_port=$(echo "$line" | cut -d\; -f1)
|
||||
container_name=$(echo "$line" | cut -d\; -f2)
|
||||
container_datadir=$(echo "$line" | cut -d\; -f3)
|
||||
image_name=$(echo "$line" | cut -d\; -f4)
|
||||
|
||||
alias mysql_$container_name="mysql -u root -h 127.0.0.1 -P $container_port"
|
||||
done < "$input"
|
||||
}
|
||||
|
||||
exec_mysql()
|
||||
{
|
||||
input="$1"
|
||||
name=$2
|
||||
db=$3
|
||||
sqlfile=$4
|
||||
while IFS='' read -r line
|
||||
do
|
||||
[ -z "$line" ] && continue
|
||||
echo "$line" | grep -q $name
|
||||
[ $? -ne 0 ] && continue
|
||||
container_port=$(echo "$line" | cut -d\; -f1)
|
||||
container_name=$(echo "$line" | cut -d\; -f2)
|
||||
container_datadir=$(echo "$line" | cut -d\; -f3)
|
||||
image_name=$(echo "$line" | cut -d\; -f4)
|
||||
|
||||
|
||||
echo "* Executing $sqlfile on $container_name"
|
||||
cat $sqlfile | mysql -u root -h 127.0.0.1 -P $container_port
|
||||
done < "$input"
|
||||
}
|
||||
exec_mysqls()
|
||||
{
|
||||
input="$1"
|
||||
db=$2
|
||||
sqlfile=$3
|
||||
while IFS='' read -r line
|
||||
do
|
||||
[ -z "$line" ] && continue
|
||||
container_port=$(echo "$line" | cut -d\; -f1)
|
||||
container_name=$(echo "$line" | cut -d\; -f2)
|
||||
container_datadir=$(echo "$line" | cut -d\; -f3)
|
||||
image_name=$(echo "$line" | cut -d\; -f4)
|
||||
|
||||
|
||||
echo "* Executing $sqlfile on $container_name"
|
||||
cat $sqlfile | mysql -u root -h 127.0.0.1 -P $container_port
|
||||
done < "$input"
|
||||
}
|
||||
|
||||
gen_mysqlalias()
|
||||
{
|
||||
input="$1"
|
||||
|
||||
while IFS='' read -r line
|
||||
do
|
||||
[ -z "$line" ] && continue
|
||||
container_port=$(echo "$line" | cut -d\; -f1)
|
||||
container_name=$(echo "$line" | cut -d\; -f2)
|
||||
container_datadir=$(echo "$line" | cut -d\; -f3)
|
||||
image_name=$(echo "$line" | cut -d\; -f4)
|
||||
|
||||
alias mysql_$container_name="mysql -u root -h 127.0.0.1 -P $container_port"
|
||||
done < "$input"
|
||||
}
|
|
@ -1,18 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
BUILD_DIR="$(dirname $(readlink -f "$0"))"
|
||||
|
||||
VERSION=$(grep -Ei 'my \$tunerversion' $BUILD_DIR/../mysqltuner.pl | grep = | cut -d\" -f2)
|
||||
cd $BUILD_DIR
|
||||
sh ./clean.sh
|
||||
|
||||
perl -pe "s/%VERSION%/$VERSION/g" mysqltuner.spec.tpl > mysqltuner.spec
|
||||
mkdir -p $BUILD_DIR/mysqltuner-$VERSION
|
||||
cp $BUILD_DIR/../mysqltuner.pl mysqltuner.spec $BUILD_DIR/../LICENSE $BUILD_DIR/../basic_passwords.txt $BUILD_DIR/../*.csv $BUILD_DIR/mysqltuner-$VERSION
|
||||
pod2man $BUILD_DIR/../mysqltuner.pl | gzip > $BUILD_DIR/mysqltuner-$VERSION/mysqltuner.1.gz
|
||||
|
||||
tar czf $BUILD_DIR/mysqltuner-${VERSION}.tgz mysqltuner-$VERSION
|
||||
rpmbuild -ta mysqltuner-${VERSION}.tgz 2>&1 | tee -a ./build.log
|
||||
set -x
|
||||
grep --color=never -E '(Wrote|crit)\S*:' $BUILD_DIR/build.log | cut -d: -f2 | xargs -I{} mv {} .
|
||||
#rm -rf mysqltuner-$VERSION ./build.log
|
|
@ -1,3 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
rm -rf mysqltuner-* mysqltuner.spec *.log
|
|
@ -1,5 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
docker ps | awk '{ print $NF}' |grep -v NAMES | xargs -n 1 docker kill
|
||||
docker ps -a | awk '{ print $NF}' |grep -v NAMES | xargs -n 1 docker rm
|
||||
docker ps -a
|
|
@ -1,15 +0,0 @@
|
|||
3306;mysql80;/var/lib/mysql8;mysql:8.0
|
||||
3307;mysql57;/var/lib/mysql57;mysql:5.7
|
||||
3308;mysql56;/var/lib/mysql56;mysql:5.6
|
||||
3309;mysql55;/var/lib/mysql55;mysql:5.5
|
||||
|
||||
4306;percona80;/var/lib/percona8;percona/percona-server:8.0
|
||||
4307;percona57;/var/lib/percona57;percona/percona-server:5.7
|
||||
4308;percona56;/var/lib/percona56;percona/percona-server:5.6
|
||||
|
||||
5306;mariadb104;/var/lib/mariadb104;mariadb:10.4
|
||||
5307;mariadb103;/var/lib/mariadb103;mariadb:10.3
|
||||
5308;mariadb102;/var/lib/mariadb102;mariadb:10.2
|
||||
5309;mariadb101;/var/lib/mariadb101;mariadb:10.1
|
||||
5310;mariadb100;/var/lib/mariadb100;mariadb:10.0
|
||||
5311;mariadb55;/var/lib/mariadb55;mariadb:5.5
|
|
@ -1,90 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
input="./build/configimg.conf"
|
||||
default_password="secret"
|
||||
|
||||
echo "[client]
|
||||
user=root
|
||||
password=$default_password" > $HOME/.my.cnf
|
||||
|
||||
chmod 600 $HOME/.my.cnf
|
||||
|
||||
[ -f "$input" ] || echo "
|
||||
3306;mysql80;/var/lib/mysql8;mysql:8.0
|
||||
3307;mysql57;/var/lib/mysql57;mysql:5.7
|
||||
3308;mysql56;/var/lib/mysql56;mysql:5.6
|
||||
3309;mysql55;/var/lib/mysql55;mysql:5.5
|
||||
|
||||
4306;percona80;/var/lib/percona8;percona/percona-server:8.0
|
||||
4307;percona57;/var/lib/percona57;percona/percona-server:5.7
|
||||
4308;percona56;/var/lib/percona56;percona/percona-server:5.6
|
||||
|
||||
5306;mariadb104;/var/lib/mariadb104;mariadb:10.4
|
||||
5307;mariadb103;/var/lib/mariadb103;mariadb:10.3
|
||||
5308;mariadb102;/var/lib/mariadb102;mariadb:10.2
|
||||
5309;mariadb101;/var/lib/mariadb101;mariadb:10.1
|
||||
5310;mariadb100;/var/lib/mariadb100;mariadb:10.0
|
||||
5311;mariadb55;/var/lib/mariadb55;mariadb:5.5
|
||||
" > "$input"
|
||||
|
||||
#
|
||||
|
||||
#echo '* PRUNING DOCKER SYSTEM DATA'
|
||||
|
||||
#[ "$1" = "clean" ] || docker system prune -a -f
|
||||
# download all images
|
||||
while IFS='' read -r line
|
||||
do
|
||||
[ -z "$line" ] && continue
|
||||
container_port=$(echo "$line" | cut -d\; -f1)
|
||||
container_name=$(echo "$line" | cut -d\; -f2)
|
||||
container_datadir=$(echo "$line" | cut -d\; -f3)
|
||||
image_name=$(echo "$line" | cut -d\; -f4)
|
||||
|
||||
if [ -n "$1" -a "$1" != "clean" ]; then
|
||||
echo $line | grep -q "$1"
|
||||
[ $? -eq 0 ] || continue
|
||||
fi
|
||||
echo "* PULLING DOCKER IMAGE: $image_name"
|
||||
docker images | grep -E " $image_name$"
|
||||
[ $? -ne 0 ] && docker pull $image_name
|
||||
|
||||
echo "* REMOVING CONTAINER : $image_name"
|
||||
docker ps -a | grep -qE "$container_name^"
|
||||
docker rm -f $container_name
|
||||
|
||||
if [ 1 -eq 0 ]; then
|
||||
echo "* DELETING DATADIR: $container_datadir"
|
||||
sudo rm -rf $container_datadir
|
||||
[ "$1" = "clean" ] && continue
|
||||
|
||||
echo "* CREATING DATADIR: $container_datadir"
|
||||
sudo mkdir -p $container_datadir
|
||||
fi
|
||||
#sudo chown -R mysql.mysql $container_datadir
|
||||
sudo chmod 777 $container_datadir
|
||||
echo "* STARTING CONTAINER: $container_name($container_port/TCP) BASED ON $image_name -> $container_datadir"
|
||||
set -x
|
||||
docker run -d -e MYSQL_ROOT_PASSWORD=$default_password -p $container_port:3306 --name $container_name -v $container_datadir:/var/lib/mysql $image_name
|
||||
set +x
|
||||
sleep 6s
|
||||
echo "* LOGS: $container_name"
|
||||
docker logs $container_name
|
||||
echo "* LISTING PORTS: $container_name BASED ON $image_name"
|
||||
docker port $container_name
|
||||
|
||||
echo "* LISTING VOLUMES: $container_name BASED ON $image_name"
|
||||
docker inspect -f "{{ .Mounts }}" $container_name
|
||||
|
||||
echo "* LISTING $container_datadir"
|
||||
ls -ls $container_datadir
|
||||
#break
|
||||
docker logs $container_name | grep -q "ready for connections"
|
||||
done < "$input"
|
||||
|
||||
echo "* LISTING DOCKER IMAGES"
|
||||
docker images
|
||||
|
||||
echo "* LISTING DOCKER CONTAINER"
|
||||
docker ps
|
||||
|
|
@ -1,28 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
source build/bashrc
|
||||
|
||||
systemctl status docker &>/dev/null
|
||||
if [ $? -ne 0 ];then
|
||||
sudo dnf install -y yum-utils device-mapper-persistent-data lvm2
|
||||
sudo dnf -y install dnf-plugins-core
|
||||
sudo dnf config-manager \
|
||||
--add-repo \
|
||||
https://download.docker.com/linux/fedora/docker-ce.repo
|
||||
|
||||
sudo dnf -y install docker-ce docker-ce-cli containerd.io
|
||||
dnf list docker-ce --showduplicates | sort -r
|
||||
|
||||
sudo systemctl start docker
|
||||
sudo systemctl enable docker
|
||||
sudo usermod -aG docker vagrant
|
||||
sudo systemctl daemon-reload
|
||||
fi
|
||||
|
||||
sh build/createMassDockerImages.sh
|
||||
|
||||
sh build/fetchSampleDatabases.sh clean
|
||||
sh build/fetchSampleDatabases.sh fetchall
|
||||
|
||||
exec_mysqls build/configimg.conf mysql contents/sakila-db/sakila-schema.sql
|
||||
exec_mysqls build/configimg.conf mysql contents/sakila-db/sakila-data.sql
|
|
@ -1,12 +0,0 @@
|
|||
#!/bin/bash
|
||||
set -xv
|
||||
|
||||
_DIR=$(dirname `readlink -f $0`)
|
||||
|
||||
|
||||
ssh $1 mkdir /images/mysqltuner
|
||||
rsync -avz ${_DIR}/.. $1:/images/mysqltuner
|
||||
|
||||
if [ "$2" = "run" ];then
|
||||
ssh $1 "su - mysql -c 'cd /images/mysqltuner; source /opt/mysql/myqenv myserver1;perl mysqltuner.pl --verbose --color'"
|
||||
fi
|
|
@ -1,35 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
|
||||
DB_WORLD_URL="https://downloads.mysql.com/docs/world.sql.zip"
|
||||
DB_WORLDX_URL="https://downloads.mysql.com/docs/world_x-db.zip"
|
||||
DB_SAKILA_URL="https://downloads.mysql.com/docs/sakila-db.zip"
|
||||
DB_MESSAGERIE_URL="https://downloads.mysql.com/docs/menagerie-db.zip"
|
||||
DB_TESTDB_URL="https://github.com/datacharmer/test_db/archive/master.zip"
|
||||
|
||||
getVal()
|
||||
{
|
||||
local vari=$1
|
||||
eval "echo \$$vari"
|
||||
}
|
||||
case "$1" in
|
||||
"fetchall")
|
||||
for sample in WORLD WORLDX SAKILA MESSAGERIE TESTDB; do
|
||||
sh $0 fetch $sample
|
||||
done
|
||||
;;
|
||||
"fetch")
|
||||
[ -z "$2" ] && exit 1
|
||||
mkdir -p ./contents
|
||||
[ -f "contents/$(basename $(getVal "DB_$2_URL"))" ] || wget -O contents/$(basename $(getVal "DB_$2_URL")) $(getVal "DB_$2_URL")
|
||||
if [ $? -eq 0 ];then
|
||||
(cd contents; unzip $( basename $(getVal "DB_$2_URL")) )
|
||||
fi
|
||||
;;
|
||||
"clean")
|
||||
rm -rf contents
|
||||
;;
|
||||
*)
|
||||
echo "Unknown operation: $1"
|
||||
;;
|
||||
esac
|
|
@ -1,13 +0,0 @@
|
|||
#!/bin/bash
|
||||
|
||||
# Update Feature list
|
||||
(
|
||||
export LANG=C
|
||||
echo -e "Features list for option: --feature (dev only)\n---\n\n"
|
||||
grep -E '^sub ' ./mysqltuner.pl | \
|
||||
perl -pe 's/sub //;s/\s*\{//g' | \
|
||||
sort -n | \
|
||||
perl -pe 's/^/* /g' | \
|
||||
grep -vE '(get_|close_|check_|memerror|cpu_cores|compare_tuner_version|grep_file_contents|update_tuner_version|mysql_version_|calculations|merge_hash|os_setup|pretty_uptime|update_tuner_version|human_size|string2file|file2|arr2|dump|which|percentage|trim|is_|hr_|info|print|select|wrap|remove_)'
|
||||
) > ./FEATURES.md
|
||||
cat ./FEATURES.md
|
|
@ -1,7 +0,0 @@
|
|||
#!/bin/bash
|
||||
|
||||
apt install -y cpanminus libpod-markdown-perl libwww-mechanize-gzip-perl perltidy dos2unix
|
||||
|
||||
cpanm File::Util
|
||||
|
||||
#####
|
|
@ -1,51 +0,0 @@
|
|||
Summary: High Performance MySQL Tuning Script
|
||||
Name: mysqltuner
|
||||
Version: %VERSION%
|
||||
Release: 1
|
||||
License: GPL v3+
|
||||
Group: Applications
|
||||
Source0: https://github.com/build/MySQLTuner-perl/build/%{name}-%{version}.tgz
|
||||
URL: https://github.com/major/MySQLTuner-perl
|
||||
Requires: mysql
|
||||
BuildArch: noarch
|
||||
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
|
||||
|
||||
%description
|
||||
MySQLTuner is a high-performance MySQL tuning script written in Perl
|
||||
that will provide you with a snapshot of a MySQL server's health.
|
||||
Based on the statistics gathered, specific recommendations will be
|
||||
provided that will increase a MySQL server's efficiency and
|
||||
performance. The script gives you automated MySQL tuning that is on
|
||||
the level of what you would receive from a MySQL DBA.
|
||||
|
||||
This script has been derived from many of the ideas in Matthew
|
||||
Montgomery's MySQL tuning primer script.
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
|
||||
%install
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
install -d $RPM_BUILD_ROOT%{_bindir}
|
||||
install -d $RPM_BUILD_ROOT%{_datarootdir}
|
||||
install -d $RPM_BUILD_ROOT/%{_mandir}/man1
|
||||
install -p %{name}.pl $RPM_BUILD_ROOT%{_bindir}/%{name}
|
||||
install -d $RPM_BUILD_ROOT%{_datarootdir}/%{name}
|
||||
install -p LICENSE $RPM_BUILD_ROOT%{_datarootdir}/%{name}
|
||||
install -p basic_passwords.txt $RPM_BUILD_ROOT%{_datarootdir}/%{name}
|
||||
install -p vulnerabilities.csv $RPM_BUILD_ROOT%{_datarootdir}/%{name}
|
||||
install -p %{name}.1.gz $RPM_BUILD_ROOT/%{_mandir}/man1
|
||||
|
||||
%clean
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
%files
|
||||
%defattr(644,root,root,755)
|
||||
%doc %{_datarootdir}/%{name}
|
||||
%attr(755,root,root) %{_bindir}/%{name}
|
||||
%{_mandir}/man1/*
|
||||
|
||||
%changelog
|
||||
* Thu Apr 14 2016 Jean-Marie RENOUARD <jmrenouard@gmail.com> %VERSION%-1
|
||||
- Initial RPM release
|
||||
|
|
@ -1,11 +0,0 @@
|
|||
#!/bin/bash
|
||||
|
||||
[ -f "./.env" ] && source ./.env
|
||||
[ -f "../.env" ] && source ../.env
|
||||
|
||||
VERSION=$1
|
||||
|
||||
docker login -u $DOCKER_USER_LOGIN -p $DOCKER_USER_PASSWORD
|
||||
docker tag jmrenouard/mysqltuner:latest jmrenouard/mysqltuner:$VERSION
|
||||
docker push jmrenouard/mysqltuner:latest
|
||||
docker push jmrenouard/mysqltuner:$VERSION
|
|
@ -1,116 +0,0 @@
|
|||
#!/bin/bash
|
||||
|
||||
server=$1
|
||||
_DIR=$(dirname `readlink -f $0`)
|
||||
|
||||
#SSH_OPTIONS="-i utilities/id_rsa"
|
||||
|
||||
SSH_OPTIONS="${SSH_OPTIONS:-""}
|
||||
|
||||
export SSH_CLIENT="ssh -q $SSH_OPTIONS -o TCPKeepAlive=yes -o ServerAliveInterval=50 -o strictHostKeyChecking=no"
|
||||
export SCP_CLIENT="scp -q $SSH_OPTIONS -o TCPKeepAlive=yes -o ServerAliveInterval=50 -o strictHostKeyChecking=no"
|
||||
_DIR="$(dirname "`readlink -f $0`")"
|
||||
|
||||
echo "* CLEANUP OLD RESULT FILES"
|
||||
rm -f mysqltuner_${server}.txt pt-*_${server}.txt innotop_${server}.txt
|
||||
|
||||
echo "* RUNNNING MYSQLTUNER"
|
||||
$SSH_CLIENT root@${server} "mysqltuner --verbose --outputfile /tmp/mysqltuner_${server}.txt"
|
||||
[ $? -ne 0 ] && exit 1
|
||||
|
||||
echo "* RUNNNING PERCONA SUMMARY"
|
||||
$SSH_CLIENT root@${server} "pt-summary> /tmp/pt-summary_${server}.txt"
|
||||
[ $? -ne 0 ] && exit 1
|
||||
|
||||
echo "* RUNNNING PERCONA MYSQL SUMMARY"
|
||||
$SSH_CLIENT root@${server} "pt-mysql-summary> /tmp/pt-mysql-summary_${server}.txt"
|
||||
[ $? -ne 0 ] && exit 1
|
||||
|
||||
echo "* RUNNNING INNOTOP"
|
||||
$SSH_CLIENT root@${server} "innotop -C -d1 --count 5 -n>> /tmp/innotop_${server}.txt"
|
||||
[ $? -ne 0 ] && exit 1
|
||||
|
||||
echo "* IMPORTING RESULT TXT"
|
||||
$SCP_CLIENT root@${server}:/tmp/mysqltuner_${server}.txt .
|
||||
$SCP_CLIENT root@${server}:/tmp/pt-*_${server}.txt .
|
||||
$SCP_CLIENT root@${server}:/tmp/innotop_${server}.txt .
|
||||
[ $? -ne 0 ] && exit 1
|
||||
|
||||
REPORT_NAME=audit.html
|
||||
echo "* GENERATING HTML RESULT"
|
||||
(
|
||||
DATE="$(date)"
|
||||
cat<<EOF
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<title>MySQL/MariaDB Audit report - $DATE</title>
|
||||
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
|
||||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
|
||||
<link rel="stylesheet" href="https://ajax.googleapis.com/ajax/libs/jqueryui/1.12.1/themes/smoothness/jquery-ui.css">
|
||||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
|
||||
<script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.12.1/jquery-ui.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.4.0/Chart.bundle.js"></script>
|
||||
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<h1>MySQL/MariaDB Audit report - $DATE</h1>
|
||||
<div id="tabs">
|
||||
<ul>
|
||||
<li><a href="#mysqltuner">Tuner</a></li>
|
||||
<li><a href="#pt-summary">Linux</a></li>
|
||||
<li><a href="#pt-mysql-summary">Percona</a></li>
|
||||
<li><a href="#innotop">InnoTop</a></li>
|
||||
</ul>
|
||||
<div id="mysqltuner">
|
||||
<pre>
|
||||
EOF
|
||||
) > ${REPORT_NAME}
|
||||
|
||||
perl ${_DIR}/txt2Html.pl - mysqltuner_${server}.txt >> ${REPORT_NAME}
|
||||
|
||||
(
|
||||
cat << 'EOF'
|
||||
</pre></div>
|
||||
<div id='pt-summary'>
|
||||
<pre>
|
||||
EOF
|
||||
) >> ${REPORT_NAME}
|
||||
|
||||
perl ${_DIR}/txt2Html.pl \# pt-summary_${server}.txt >> ${REPORT_NAME}
|
||||
(
|
||||
cat << 'EOF'
|
||||
</pre></div>
|
||||
<div id='pt-mysql-summary'>
|
||||
<pre>
|
||||
EOF
|
||||
) >> ${REPORT_NAME}
|
||||
perl ${_DIR}/txt2Html.pl \# pt-mysql-summary_${server}.txt >> ${REPORT_NAME}
|
||||
|
||||
(
|
||||
cat << 'EOF'
|
||||
</pre></div>
|
||||
<div id='innotop'>
|
||||
<pre>
|
||||
EOF
|
||||
) >> ${REPORT_NAME}
|
||||
|
||||
cat innotop_${server}.txt >> ${REPORT_NAME}
|
||||
(
|
||||
cat << 'EOF'
|
||||
</pre></div>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
$(function(){
|
||||
$('#tabs').tabs({ active: 0 });
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
EOF
|
||||
) >> ${REPORT_NAME}
|
||||
echo "* ALL IS OK"
|
||||
exit 0
|
|
@ -1,26 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
input="./build/configimg.conf"
|
||||
|
||||
while IFS='' read -r line
|
||||
do
|
||||
[ -z "$line" ] && continue
|
||||
container_port=$(echo "$line" | cut -d\; -f1)
|
||||
container_name=$(echo "$line" | cut -d\; -f2)
|
||||
container_datadir=$(echo "$line" | cut -d\; -f3)
|
||||
image_name=$(echo "$line" | cut -d\; -f4)
|
||||
|
||||
if [ -n "$1" -a "$1" != "$container_name" ]; then
|
||||
continue
|
||||
fi
|
||||
shift
|
||||
sudo rm -f /var/lib/mysql
|
||||
sudo ln -sf $container_datadir /var/lib/mysql
|
||||
sudo chmod 777 /var/lib/mysql
|
||||
|
||||
#sudo docker logs $container_name > /tmp/mysqld.log
|
||||
ls -ls /var/lib | grep -E 'mysql$'
|
||||
#set +x
|
||||
perl mysqltuner.pl $* --host 127.0.0.1 --port $container_port
|
||||
exit $?
|
||||
done < "$input"
|
|
@ -1,17 +0,0 @@
|
|||
#!/bin/sh
|
||||
# Used to sync the original project with local project.
|
||||
|
||||
#Save existing working
|
||||
git stash
|
||||
|
||||
#add project url to current repository as upstream-live
|
||||
git remote add upstream-live https://github.com/major/MySQLTuner-perl
|
||||
|
||||
#Fetch updated code
|
||||
git fetch upstream-live
|
||||
|
||||
#Going back to the master branch for mearging latest code
|
||||
git checkout master
|
||||
|
||||
#Merge latest code with master branch.
|
||||
git merge upstream-live/master
|
|
@ -1,28 +0,0 @@
|
|||
#!/bin/env perl
|
||||
use strict;
|
||||
use warnings;
|
||||
use File::Basename;
|
||||
|
||||
my $headerSep=$ARGV[0];
|
||||
my $txtFile=$ARGV[1];
|
||||
my $fileid =basename($txtFile);
|
||||
$fileid=~ s/\./-/g;
|
||||
|
||||
open(my $fh, '<', $txtFile) or die "Could not open file '$txtFile' $!";
|
||||
print "\n<pre>";
|
||||
my $i=1;
|
||||
while (my $row = <$fh>) {
|
||||
chomp $row;
|
||||
if ($row =~ /^$headerSep/) {
|
||||
print "</pre>\n";
|
||||
$row =~ s/$headerSep//g;
|
||||
print "<H3 >$row</H3>\n";
|
||||
print "<pre>";
|
||||
$i++;
|
||||
next;
|
||||
}
|
||||
print "$row\n" unless $row =~ /^\s*$/;
|
||||
}
|
||||
print "</pre>\n";
|
||||
close $fh;
|
||||
|
|
@ -1,80 +0,0 @@
|
|||
#!/usr/bin/env perl
|
||||
use warnings;
|
||||
use strict;
|
||||
use WWW::Mechanize::GZip;
|
||||
use File::Util;
|
||||
use Data::Dumper;
|
||||
use List::MoreUtils qw(uniq);
|
||||
my $verbose=1;
|
||||
sub AUTOLOAD {
|
||||
use vars qw($AUTOLOAD);
|
||||
my $cmd = $AUTOLOAD;
|
||||
$cmd=~s/.*:://;
|
||||
print "\n","*" x 60, "\n* Catching system call : $cmd \n", "*"x60 if defined $verbose;
|
||||
print "\nExecution : \t", $cmd, " ", join " ", @_ if defined $verbose;
|
||||
my $outp=`$cmd @_ 2>&1`;
|
||||
my $rc=$?;
|
||||
print "\nResult : \t$outp", if defined $verbose;
|
||||
print "Code : \t", $rc, "\n" if defined $verbose;
|
||||
return $rc;
|
||||
}
|
||||
|
||||
my $mech = WWW::Mechanize->new();
|
||||
$mech->agent('Mozilla/5.0 (Windows NT 6.1; WOW64; rv:41.0) Gecko/20100101 Firefox/41.0');
|
||||
#$mech->proxy( ['http'], 'http://XXX.XXX.XXX.XXX:3128' );
|
||||
#$mech->proxy( ['https'], 'http://XXX.XXX.XXX.XXX:3128' );
|
||||
$mech->env_proxy;
|
||||
|
||||
|
||||
$mech->ssl_opts( 'verify_hostname' => 0 );
|
||||
|
||||
|
||||
$mech->requests_redirectable(['GET', 'POST', 'HEAD']);
|
||||
|
||||
|
||||
$mech->add_handler("request_send", sub { print '#'x80,"\nSEND REQUEST:\n"; shift->dump; print '#'x80,"\n";return } ) if defined $verbose;
|
||||
$mech->add_handler("response_done", sub { print '#'x80,"\nDONE RESPONSE:\n"; shift->dump; print '#'x80,"\n"; return }) if defined $verbose;
|
||||
$mech->add_handler("response_redirect" => sub { print '#'x80,"\nREDIRECT RESPONSE:\n"; shift->dump; print '#'x80,"\n"; return }) if defined $verbose;
|
||||
|
||||
|
||||
my $url = 'http://cve.mitre.org/data/downloads/allitems.csv';
|
||||
my $resp;
|
||||
|
||||
unless (-f 'cve.csv') {
|
||||
$resp=$mech->get($url);
|
||||
$mech->save_content( "cve.csv" );
|
||||
}
|
||||
my $f=File::Util->new( readlimit => 152428800);
|
||||
File::Util->flock_rules( qw/ IGNORE/ );
|
||||
|
||||
my @versions;
|
||||
my $temp;
|
||||
unlink './vulnerabilities.csv' if -f './vulnerabilities.csv';
|
||||
open(CVE, 'cve.csv') or die("Could not open file.");
|
||||
foreach my $line (<CVE>) {
|
||||
if ($line =~ /(mysql|mariadb|percona)/i
|
||||
and $line =~ /server/i
|
||||
and $line =~ /CANDIDATE/i
|
||||
and $line !~ /MaxDB/i
|
||||
and $line !~ /\*\* REJECT \*\* /i
|
||||
and $line !~ /\*\* DISPUTED \*\* /i
|
||||
and $line !~ /(Radius|Proofpoint|Active\ Record|XAMPP|TGS\ Content|e107|post-installation|Apache\ HTTP|Zmanda|pforum|phpMyAdmin|Proxy\ Server|on\ Windows|ADOdb|Mac\ OS|Dreamweaver|InterWorx|libapache2|cisco|ProFTPD)/i) {
|
||||
$line =~ s/,/;/g;
|
||||
|
||||
@versions = $line =~/(\d{1,2}\.\d+\.[\d]+)/g;
|
||||
|
||||
foreach my $vers (uniq(@versions)) {
|
||||
my @nb=split('\.', $vers);
|
||||
$nb[2]-- if ($line =~ /before/i);
|
||||
#print $vers."\n".Dumper @nb;
|
||||
#print "$line";
|
||||
#exit 0 if ($line =~/before/i) ;
|
||||
$f->write_file('file' => './vulnerabilities.csv', 'content' => "$nb[0].$nb[1].$nb[2];$nb[0];$nb[1];$nb[2];$line", 'mode' => 'append');
|
||||
}
|
||||
}
|
||||
}
|
||||
close(CVE);
|
||||
chmod 0644, "./cve.csv", "../vulnerabilities.csv";
|
||||
#unlink ('cve.csv') if (-f 'cve.csv');
|
||||
|
||||
exit(0);
|
|
@ -1,20 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
(cd ..
|
||||
echo "* GENERATING USAGE FILE"
|
||||
pod2markdown mysqltuner.pl >USAGE.md
|
||||
echo "* TIDYFY SCRIPT"
|
||||
perltidy -b mysqltuner.pl
|
||||
)
|
||||
echo "* Update CVE list"
|
||||
perl updateCVElist.pl
|
||||
dos2unix ../mysqltuner.pl
|
||||
|
||||
# Update Feature list
|
||||
bash ./genFeatures.sh
|
||||
|
||||
git add ../vulnerabilities.csv ../mysqltuner.pl ../USAGE.md ../FEATURES.md
|
||||
git commit -m 'Update Vulnerabilities list
|
||||
Indenting mysqltuner
|
||||
Update Usage information
|
||||
Regenerate fetures list'
|
File diff suppressed because one or more lines are too long
|
@ -1 +0,0 @@
|
|||
"big5","big5_chinese_ci","Big5 Traditional Chinese","2""dec8","dec8_swedish_ci","DEC West European","1""cp850","cp850_general_ci","DOS West European","1""hp8","hp8_english_ci","HP West European","1""koi8r","koi8r_general_ci","KOI8-R Relcom Russian","1""latin1","latin1_swedish_ci","cp1252 West European","1""latin2","latin2_general_ci","ISO 8859-2 Central European","1""swe7","swe7_swedish_ci","7bit Swedish","1""ascii","ascii_general_ci","US ASCII","1""ujis","ujis_japanese_ci","EUC-JP Japanese","3""sjis","sjis_japanese_ci","Shift-JIS Japanese","2""hebrew","hebrew_general_ci","ISO 8859-8 Hebrew","1""tis620","tis620_thai_ci","TIS620 Thai","1""euckr","euckr_korean_ci","EUC-KR Korean","2""koi8u","koi8u_general_ci","KOI8-U Ukrainian","1""gb2312","gb2312_chinese_ci","GB2312 Simplified Chinese","2""greek","greek_general_ci","ISO 8859-7 Greek","1""cp1250","cp1250_general_ci","Windows Central European","1""gbk","gbk_chinese_ci","GBK Simplified Chinese","2""latin5","latin5_turkish_ci","ISO 8859-9 Turkish","1""armscii8","armscii8_general_ci","ARMSCII-8 Armenian","1""utf8","utf8_general_ci","UTF-8 Unicode","3""ucs2","ucs2_general_ci","UCS-2 Unicode","2""cp866","cp866_general_ci","DOS Russian","1""keybcs2","keybcs2_general_ci","DOS Kamenicky Czech-Slovak","1""macce","macce_general_ci","Mac Central European","1""macroman","macroman_general_ci","Mac West European","1""cp852","cp852_general_ci","DOS Central European","1""latin7","latin7_general_ci","ISO 8859-13 Baltic","1""utf8mb4","utf8mb4_general_ci","UTF-8 Unicode","4""cp1251","cp1251_general_ci","Windows Cyrillic","1""utf16","utf16_general_ci","UTF-16 Unicode","4""utf16le","utf16le_general_ci","UTF-16LE Unicode","4""cp1256","cp1256_general_ci","Windows Arabic","1""cp1257","cp1257_general_ci","Windows Baltic","1""utf32","utf32_general_ci","UTF-32 Unicode","4""binary","binary","Binary pseudo charset","1""geostd8","geostd8_general_ci","GEOSTD8 Georgian","1""cp932","cp932_japanese_ci","SJIS for Windows Japanese","2""eucjpms","eucjpms_japanese_ci","UJIS for Windows Japanese","3"
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -1 +0,0 @@
|
|||
"NULL"
|
|
|
@ -1 +0,0 @@
|
|||
"MRG_MyISAM","YES","Collection of identical MyISAM tables","NO","NO","NO""CSV","YES","Stores tables as CSV files","NO","NO","NO""SEQUENCE","YES","Generated tables filled with sequential values","YES","NO","YES""MyISAM","YES","Non-transactional engine with good performance and small data footprint","NO","NO","NO""MEMORY","YES","Hash based, stored in memory, useful for temporary tables","NO","NO","NO""InnoDB","DEFAULT","Supports transactions, row-level locking, foreign keys and encryption for tables","YES","YES","YES""Aria","YES","Crash-safe tables with MyISAM heritage","NO","NO","NO""PERFORMANCE_SCHEMA","YES","Performance Schema","NO","NO","NO"
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -1 +0,0 @@
|
|||
"0","8192","1016","6989","2564","0","0","0","0","0","193","1512913","4.020749567717339","31518.36420074582","568","9401","10115","11.833086810691444","195.85008645653215","210.72477656715486","20519569","1000","0","73","254","0","5.291556425907793","0","4010","3","0","0"
|
|
|
@ -1 +0,0 @@
|
|||
"1024","0","0","0","0","0""2048","0","0","0","0","0""4096","0","0","0","0","0""8192","0","0","0","0","0""16384","0","0","0","0","0"
|
|
|
@ -1 +0,0 @@
|
|||
"1024","0","0","0","0","0""2048","0","0","0","0","0""4096","0","0","0","0","0""8192","0","0","0","0","0""16384","0","0","0","0","0"
|
|
|
@ -1 +0,0 @@
|
|||
"1024","0","0","0","0","0""2048","0","0","0","0","0""4096","0","0","0","0","0""8192","0","0","0","0","0""16384","0","0","0","0","0"
|
|
|
@ -1 +0,0 @@
|
|||
"1024","0","0","0","0","0""2048","0","0","0","0","0""4096","0","0","0","0","0""8192","0","0","0","0","0""16384","0","0","0","0","0"
|
|
|
@ -1 +0,0 @@
|
|||
"a""about""an""are""as""at""be""by""com""de""en""for""from""how""i""in""is""it""la""of""on""or""that""the""this""to""was""what""when""where""who""will""with""und""the""www"
|
|
File diff suppressed because one or more lines are too long
|
@ -1 +0,0 @@
|
|||
"dict0dict.cc:922","dict0dict.cc","922","15""log0log.cc:698","log0log.cc","698","9""btr0sea.cc:190","btr0sea.cc","190","33""btr0sea.cc:190","btr0sea.cc","190","1""buf_block_t::lock","combined buf0buf.cc","1475","20"
|
|
|
@ -1 +0,0 @@
|
|||
"11","ID","0","1","524292","0""11","FOR_NAME","1","1","524292","0""11","REF_NAME","2","1","524292","0""11","N_COLS","3","6","0","4""12","ID","0","1","524292","0""12","POS","1","6","0","4""12","FOR_COL_NAME","2","1","524292","0""12","REF_COL_NAME","3","1","524292","0""13","SPACE","0","6","0","4""13","NAME","1","1","524292","0""13","FLAGS","2","6","0","4""14","SPACE","0","6","0","4""14","PATH","1","1","524292","0""15","TABLE_ID","0","6","0","8""15","POS","1","6","0","4""15","BASE_POS","2","6","0","4""16","database_name","0","12","5439759","192""16","table_name","1","12","5443855","597""16","last_update","2","3","526087","4""16","n_rows","3","6","1800","8""16","clustered_index_size","4","6","1800","8""16","sum_of_other_index_sizes","5","6","1800","8""17","database_name","0","12","5439759","192""17","table_name","1","12","5443855","597""17","index_name","2","12","5439759","192""17","last_update","3","3","526087","4""17","stat_name","4","12","5439759","192""17","stat_value","5","6","1800","8""17","sample_size","6","6","1544","8""17","stat_description","7","12","5443855","3072""18","domain_id","0","6","1795","4""18","sub_id","1","6","1800","8""18","server_id","2","6","1795","4""18","seq_no","3","6","1800","8""19","emp_no","0","6","1283","4""19","birth_date","1","6","1290","3""19","first_name","2","1","524559","14""19","last_name","3","1","524559","16""19","gender","4","6","1022","1""19","hire_date","5","6","1290","3""20","dept_no","0","2","524798","4""20","dept_name","1","1","524559","40""21","emp_no","0","6","1283","4""21","dept_no","1","2","524798","4""21","from_date","2","6","1290","3""21","to_date","3","6","1290","3""22","emp_no","0","6","1283","4""22","dept_no","1","2","524798","4""22","from_date","2","6","1290","3""22","to_date","3","6","1290","3""23","emp_no","0","6","1283","4""23","title","1","1","524559","50""23","from_date","2","6","1290","3""23","to_date","3","6","1034","3""24","emp_no","0","6","1283","4""24","salary","1","6","1283","4""24","from_date","2","6","1290","3""24","to_date","3","6","1290","3"
|
|
|
@ -1 +0,0 @@
|
|||
"1","./mysql/innodb_table_stats.ibd""2","./mysql/innodb_index_stats.ibd""3","./mysql/gtid_slave_pos.ibd""4","./employees/employees.ibd""5","./employees/departments.ibd""6","./employees/dept_manager.ibd""7","./employees/dept_emp.ibd""8","./employees/titles.ibd""9","./employees/salaries.ibd"
|
|
|
@ -1 +0,0 @@
|
|||
"11","ID","0""12","FOR_NAME","0""13","REF_NAME","0""14","ID","0""14","POS","1""15","SPACE","0""16","SPACE","0""17","TABLE_ID","0""17","POS","1""17","BASE_POS","2""18","database_name","0""18","table_name","1""19","database_name","0""19","table_name","1""19","index_name","2""19","stat_name","3""20","domain_id","0""20","sub_id","1""21","emp_no","0""22","dept_no","0""23","dept_name","0""24","emp_no","0""24","dept_no","1""25","dept_no","0""26","emp_no","0""26","dept_no","1""27","dept_no","0""28","emp_no","0""28","title","1""28","from_date","2""29","emp_no","0""29","from_date","1"
|
|
|
@ -1 +0,0 @@
|
|||
"employees/dept_emp_ibfk_1","employees/dept_emp","employees/employees","1","1""employees/dept_emp_ibfk_2","employees/dept_emp","employees/departments","1","1""employees/dept_manager_ibfk_1","employees/dept_manager","employees/employees","1","1""employees/dept_manager_ibfk_2","employees/dept_manager","employees/departments","1","1""employees/salaries_ibfk_1","employees/salaries","employees/employees","1","1""employees/titles_ibfk_1","employees/titles","employees/employees","1","1"
|
|
|
@ -1 +0,0 @@
|
|||
"employees/dept_emp_ibfk_1","emp_no","emp_no","0""employees/dept_emp_ibfk_2","dept_no","dept_no","0""employees/dept_manager_ibfk_1","emp_no","emp_no","0""employees/dept_manager_ibfk_2","dept_no","dept_no","0""employees/salaries_ibfk_1","emp_no","emp_no","0""employees/titles_ibfk_1","emp_no","emp_no","0"
|
|
|
@ -1 +0,0 @@
|
|||
"11","ID_IND","11","3","1","302","0","50""12","FOR_IND","11","0","1","303","0","50""13","REF_IND","11","0","1","304","0","50""14","ID_IND","12","3","2","305","0","50""15","SYS_TABLESPACES_SPACE","13","3","1","307","0","50""16","SYS_DATAFILES_SPACE","14","3","1","308","0","50""17","BASE_IDX","15","3","3","310","0","50""18","PRIMARY","16","3","2","3","1","50""19","PRIMARY","17","3","4","3","2","50""20","PRIMARY","18","3","2","3","3","50""21","PRIMARY","19","3","1","3","4","50""22","PRIMARY","20","3","1","3","5","50""23","dept_name","20","2","1","4","5","50""24","PRIMARY","21","3","2","3","6","50""25","dept_no","21","0","1","4","6","50""26","PRIMARY","22","3","2","3","7","50""27","dept_no","22","0","1","4","7","50""28","PRIMARY","23","3","3","3","8","50""29","PRIMARY","24","3","2","3","9","50"
|
|
|
@ -1 +0,0 @@
|
|||
"14","SYS_DATAFILES","0","5","0","Antelope","Redundant","0","System""11","SYS_FOREIGN","0","7","0","Antelope","Redundant","0","System""12","SYS_FOREIGN_COLS","0","7","0","Antelope","Redundant","0","System""13","SYS_TABLESPACES","0","6","0","Antelope","Redundant","0","System""15","SYS_VIRTUAL","0","6","0","Antelope","Redundant","0","System""20","employees/departments","33","5","5","Barracuda","Dynamic","0","Single""22","employees/dept_emp","33","7","7","Barracuda","Dynamic","0","Single""21","employees/dept_manager","33","7","6","Barracuda","Dynamic","0","Single""19","employees/employees","33","9","4","Barracuda","Dynamic","0","Single""24","employees/salaries","33","7","9","Barracuda","Dynamic","0","Single""23","employees/titles","33","7","8","Barracuda","Dynamic","0","Single""18","mysql/gtid_slave_pos","33","7","3","Barracuda","Dynamic","0","Single""17","mysql/innodb_index_stats","33","11","2","Barracuda","Dynamic","0","Single""16","mysql/innodb_table_stats","33","9","1","Barracuda","Dynamic","0","Single"
|
|
|
@ -1 +0,0 @@
|
|||
"1","mysql/innodb_table_stats","33","Barracuda","Dynamic","16384","16384","Single","4096","98304","98304""2","mysql/innodb_index_stats","33","Barracuda","Dynamic","16384","16384","Single","4096","98304","98304""3","mysql/gtid_slave_pos","33","Barracuda","Dynamic","16384","16384","Single","4096","98304","98304""4","employees/employees","33","Barracuda","Dynamic","16384","16384","Single","4096","23068672","23072768""5","employees/departments","33","Barracuda","Dynamic","16384","16384","Single","4096","114688","118784""6","employees/dept_manager","33","Barracuda","Dynamic","16384","16384","Single","4096","114688","118784""7","employees/dept_emp","33","Barracuda","Dynamic","16384","16384","Single","4096","26214400","26218496""8","employees/titles","33","Barracuda","Dynamic","16384","16384","Single","4096","28311552","28315648""9","employees/salaries","33","Barracuda","Dynamic","16384","16384","Single","4096","109051904","109056000"
|
|
|
@ -1 +0,0 @@
|
|||
"14","SYS_DATAFILES","Uninitialized","0","0","0","0","0","0""11","SYS_FOREIGN","Uninitialized","0","0","0","0","0","0""12","SYS_FOREIGN_COLS","Uninitialized","0","0","0","0","0","0""13","SYS_TABLESPACES","Uninitialized","0","0","0","0","0","0""15","SYS_VIRTUAL","Uninitialized","0","0","0","0","0","0""20","employees/departments","Initialized","9","1","1","0","0","1""22","employees/dept_emp","Initialized","331570","737","353","0","0","2""21","employees/dept_manager","Initialized","24","1","1","0","0","1""19","employees/employees","Initialized","299335","929","0","0","0","1""24","employees/salaries","Initialized","2844047","1","0","86302","0","1""23","employees/titles","Initialized","442308","1252","0","0","0","1""18","mysql/gtid_slave_pos","Initialized","0","1","0","0","0","1""17","mysql/innodb_index_stats","Initialized","38","1","0","0","0","1""16","mysql/innodb_table_stats","Initialized","7","1","0","0","0","1"
|
|
|
@ -1 +0,0 @@
|
|||
"0","innodb_system","0","NULL","NULL","NULL","0","0""3","mysql/gtid_slave_pos","0","NULL","NULL","NULL","0","0""2","mysql/innodb_index_stats","0","NULL","NULL","NULL","0","0""1","mysql/innodb_table_stats","0","NULL","NULL","NULL","0","0""4","employees/employees","0","NULL","NULL","NULL","0","0""5","employees/departments","0","NULL","NULL","NULL","0","0""6","employees/dept_manager","0","NULL","NULL","NULL","0","0""7","employees/dept_emp","0","NULL","NULL","NULL","0","0""8","employees/titles","0","NULL","NULL","NULL","0","0""9","employees/salaries","0","NULL","NULL","NULL","0","0"
|
|
File diff suppressed because one or more lines are too long
|
@ -1 +0,0 @@
|
|||
"default","NULL","NULL","134217728","1024","2","107161","0","2","2","0","0"
|
|
File diff suppressed because one or more lines are too long
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue