<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="FeedCreator 1.8" -->
<?xml-stylesheet href="https://shiyoka.com/lib/exe/css.php?s=feed" type="text/css"?>
<rdf:RDF
    xmlns="http://purl.org/rss/1.0/"
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
    xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel rdf:about="https://shiyoka.com/feed.php">
        <title>ClownWiki - mysql</title>
        <description></description>
        <link>https://shiyoka.com/</link>
        <image rdf:resource="https://shiyoka.com/lib/exe/fetch.php?media=wiki:dokuwiki.svg" />
       <dc:date>2026-05-08T13:25:22+00:00</dc:date>
        <items>
            <rdf:Seq>
                <rdf:li rdf:resource="https://shiyoka.com/doku.php?id=mysql:addpartition&amp;rev=1739713984&amp;do=diff"/>
                <rdf:li rdf:resource="https://shiyoka.com/doku.php?id=mysql:basic_setting_55&amp;rev=1739713984&amp;do=diff"/>
                <rdf:li rdf:resource="https://shiyoka.com/doku.php?id=mysql:command&amp;rev=1739713984&amp;do=diff"/>
                <rdf:li rdf:resource="https://shiyoka.com/doku.php?id=mysql:count_if&amp;rev=1739713984&amp;do=diff"/>
                <rdf:li rdf:resource="https://shiyoka.com/doku.php?id=mysql:error1114&amp;rev=1739713984&amp;do=diff"/>
                <rdf:li rdf:resource="https://shiyoka.com/doku.php?id=mysql:incremental_backup&amp;rev=1739713984&amp;do=diff"/>
                <rdf:li rdf:resource="https://shiyoka.com/doku.php?id=mysql:innodb_stats_on_metadata&amp;rev=1739713984&amp;do=diff"/>
                <rdf:li rdf:resource="https://shiyoka.com/doku.php?id=mysql:innotop&amp;rev=1739713984&amp;do=diff"/>
                <rdf:li rdf:resource="https://shiyoka.com/doku.php?id=mysql:install_from_repository&amp;rev=1739713984&amp;do=diff"/>
                <rdf:li rdf:resource="https://shiyoka.com/doku.php?id=mysql:install_from_rpm_ver_5.6&amp;rev=1739713984&amp;do=diff"/>
                <rdf:li rdf:resource="https://shiyoka.com/doku.php?id=mysql:log_analyze&amp;rev=1739713984&amp;do=diff"/>
                <rdf:li rdf:resource="https://shiyoka.com/doku.php?id=mysql:memo&amp;rev=1739713984&amp;do=diff"/>
                <rdf:li rdf:resource="https://shiyoka.com/doku.php?id=mysql:mem_use_calc&amp;rev=1739713984&amp;do=diff"/>
                <rdf:li rdf:resource="https://shiyoka.com/doku.php?id=mysql:myisam_to_innodb&amp;rev=1739713984&amp;do=diff"/>
                <rdf:li rdf:resource="https://shiyoka.com/doku.php?id=mysql:mymemcheck&amp;rev=1739713984&amp;do=diff"/>
                <rdf:li rdf:resource="https://shiyoka.com/doku.php?id=mysql:mysql57memo&amp;rev=1739713984&amp;do=diff"/>
                <rdf:li rdf:resource="https://shiyoka.com/doku.php?id=mysql:mysqldump&amp;rev=1739713984&amp;do=diff"/>
                <rdf:li rdf:resource="https://shiyoka.com/doku.php?id=mysql:mysqldump_events_error&amp;rev=1739713984&amp;do=diff"/>
                <rdf:li rdf:resource="https://shiyoka.com/doku.php?id=mysql:mysqldump_pwd_sh&amp;rev=1739713984&amp;do=diff"/>
                <rdf:li rdf:resource="https://shiyoka.com/doku.php?id=mysql:mysqltuner&amp;rev=1739713984&amp;do=diff"/>
                <rdf:li rdf:resource="https://shiyoka.com/doku.php?id=mysql:mysql_bench&amp;rev=1739713984&amp;do=diff"/>
                <rdf:li rdf:resource="https://shiyoka.com/doku.php?id=mysql:mysql_replication_build&amp;rev=1739713984&amp;do=diff"/>
                <rdf:li rdf:resource="https://shiyoka.com/doku.php?id=mysql:mysql_secure_installation&amp;rev=1739713984&amp;do=diff"/>
                <rdf:li rdf:resource="https://shiyoka.com/doku.php?id=mysql:mysq_semi-sync_replication_build&amp;rev=1739713984&amp;do=diff"/>
                <rdf:li rdf:resource="https://shiyoka.com/doku.php?id=mysql:onlineddl&amp;rev=1739713984&amp;do=diff"/>
                <rdf:li rdf:resource="https://shiyoka.com/doku.php?id=mysql:oracle_row_number&amp;rev=1739713984&amp;do=diff"/>
                <rdf:li rdf:resource="https://shiyoka.com/doku.php?id=mysql:partitioning&amp;rev=1739713984&amp;do=diff"/>
                <rdf:li rdf:resource="https://shiyoka.com/doku.php?id=mysql:phpmyadmin_environment&amp;rev=1739713984&amp;do=diff"/>
                <rdf:li rdf:resource="https://shiyoka.com/doku.php?id=mysql:phpmyadmin_ex&amp;rev=1739713984&amp;do=diff"/>
                <rdf:li rdf:resource="https://shiyoka.com/doku.php?id=mysql:profiling&amp;rev=1739713984&amp;do=diff"/>
                <rdf:li rdf:resource="https://shiyoka.com/doku.php?id=mysql:query&amp;rev=1739713984&amp;do=diff"/>
                <rdf:li rdf:resource="https://shiyoka.com/doku.php?id=mysql:query_for_file&amp;rev=1739713984&amp;do=diff"/>
                <rdf:li rdf:resource="https://shiyoka.com/doku.php?id=mysql:realtime_processlist&amp;rev=1739713984&amp;do=diff"/>
                <rdf:li rdf:resource="https://shiyoka.com/doku.php?id=mysql:replicate_error&amp;rev=1739713984&amp;do=diff"/>
                <rdf:li rdf:resource="https://shiyoka.com/doku.php?id=mysql:slowlog_rotate&amp;rev=1739713984&amp;do=diff"/>
                <rdf:li rdf:resource="https://shiyoka.com/doku.php?id=mysql:slowlog_rotate_manual&amp;rev=1739713984&amp;do=diff"/>
                <rdf:li rdf:resource="https://shiyoka.com/doku.php?id=mysql:ssh_tunnel&amp;rev=1739713984&amp;do=diff"/>
                <rdf:li rdf:resource="https://shiyoka.com/doku.php?id=mysql:temporary&amp;rev=1739713984&amp;do=diff"/>
                <rdf:li rdf:resource="https://shiyoka.com/doku.php?id=mysql:tuning&amp;rev=1739713984&amp;do=diff"/>
                <rdf:li rdf:resource="https://shiyoka.com/doku.php?id=mysql:warmup&amp;rev=1739713984&amp;do=diff"/>
                <rdf:li rdf:resource="https://shiyoka.com/doku.php?id=mysql:xtrabackup&amp;rev=1739713984&amp;do=diff"/>
            </rdf:Seq>
        </items>
    </channel>
    <image rdf:about="https://shiyoka.com/lib/exe/fetch.php?media=wiki:dokuwiki.svg">
        <title>ClownWiki</title>
        <link>https://shiyoka.com/</link>
        <url>https://shiyoka.com/lib/exe/fetch.php?media=wiki:dokuwiki.svg</url>
    </image>
    <item rdf:about="https://shiyoka.com/doku.php?id=mysql:addpartition&amp;rev=1739713984&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2025-02-16T13:53:04+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>addpartition</title>
        <link>https://shiyoka.com/doku.php?id=mysql:addpartition&amp;rev=1739713984&amp;do=diff</link>
        <description>パーティション追加スクリプト


#!/bin/sh

DB_HOST=clown-adm01
DB_NAME=clown

TABLENAME=$1
shift;
if [ -z $TABLENAME ]; then
  echo &quot;table name is needed.&quot; 1&gt;&amp;2
  exit 1
fi

NEXT=${1}
if [ -z $TABLENAME ]; then
  NEXT=10
fi


CURRENT=&quot;&quot;
QUERY=&quot;&quot;


#
# 既存の最終パーティションを取得
#
function getServerId
{
#echo $TABLENAME

#CURRENT=&quot;&quot;

    CURRENT=`mysql --defaults-extra-file=/tmp/.clownadmin.cnf -N -s &lt;&lt; EOT
SELECT 
    PARTITION_NAME
FROM 
    INFORMATION_SCHEMA.PARTITIONS
WHERE 
    TABLE_SCHEMA = &#039;clown&#039;
AND
    TABLE_N…</description>
    </item>
    <item rdf:about="https://shiyoka.com/doku.php?id=mysql:basic_setting_55&amp;rev=1739713984&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2025-02-16T13:53:04+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>basic_setting_55</title>
        <link>https://shiyoka.com/doku.php?id=mysql:basic_setting_55&amp;rev=1739713984&amp;do=diff</link>
        <description>MySQL5.5系の基本設定

[mysqld]

character-set-server=utf8
skip-character-set-client-handshake
default-storage-engine=innodb
collation-server=utf8_general_ci
innodb_file_format=Barracuda
innodb_file_per_table=1

innodb_additional_mem_pool_size = 割り当て可能なメモリの80%
innodb_buffer_pool_size = エラーログにエラーが出ない程度
innodb_log_buffer_size = 8MB ～ 64MB
innodb_log_file_size = 1MB ～ 4GB、大きい方が良いが以下に注意。</description>
    </item>
    <item rdf:about="https://shiyoka.com/doku.php?id=mysql:command&amp;rev=1739713984&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2025-02-16T13:53:04+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>command</title>
        <link>https://shiyoka.com/doku.php?id=mysql:command&amp;rev=1739713984&amp;do=diff</link>
        <description>コマンド

テーブル構造・カラム一覧


&gt; DESCRIBE テーブル名;


index確認


&gt; show index from テーブル;


テーブル定義確認


&gt; show create table テーブル;


ユーザ確認


&gt; SELECT host,user FROM mysql.user;
+-----------+------+
| host      | user |
+-----------+------+
| 127.0.0.1 | root |
| localhost |      |
| localhost | root |
+-----------+------+
3 rows in set (0.00 sec)

&gt; show grants;
+---------------------------------------------------------------------+
| Grants for root@localhost                                           |
+-------…</description>
    </item>
    <item rdf:about="https://shiyoka.com/doku.php?id=mysql:count_if&amp;rev=1739713984&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2025-02-16T13:53:04+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>count_if</title>
        <link>https://shiyoka.com/doku.php?id=mysql:count_if&amp;rev=1739713984&amp;do=diff</link>
        <description>条件ごとにCOUNTする

全件と条件ごとの集計を行う。

e.g. 有効な顧客の全数、男女を集計


SELECT
  COUNT(1) AS ALL
  , COUNT(IF(sex=&#039;M&#039;,1,NULL)) AS MALE
  , COUNT(IF(sex=&#039;F&#039;,1,NULL)) AS FEMALE
FROM
  customer
WHERE
  delflg=0</description>
    </item>
    <item rdf:about="https://shiyoka.com/doku.php?id=mysql:error1114&amp;rev=1739713984&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2025-02-16T13:53:04+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>error1114</title>
        <link>https://shiyoka.com/doku.php?id=mysql:error1114&amp;rev=1739713984&amp;do=diff</link>
        <description>ALTER TABLE時に「ERROR 1114」


mysql&gt; ALTER TABLE table ADD `column` VARCHAR(4000) AFTER col;
ERROR 1114 (HY000): The table &#039;table&#039; is full



# df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/sda1              15G  7.2G  6.8G  52% /
tmpfs                  16G     0   16G   0% /dev/shm
/dev/mapper/VGroup00-main_lv00
                      296G  268G   14G  96% /mnt/addVol</description>
    </item>
    <item rdf:about="https://shiyoka.com/doku.php?id=mysql:incremental_backup&amp;rev=1739713984&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2025-02-16T13:53:04+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>incremental_backup</title>
        <link>https://shiyoka.com/doku.php?id=mysql:incremental_backup&amp;rev=1739713984&amp;do=diff</link>
        <description>binlogを用いた差分バックアップ

事前準備

binlogを出力する設定


# vi /etc/my.cnf

+) log-bin = mysql-bin
+) expire_logs_days = 2
+) sync_binlog = 1


	*  log-bin = mysql-bin
MySQLのルートディレクトリにmysql-binというファイルを出力する。</description>
    </item>
    <item rdf:about="https://shiyoka.com/doku.php?id=mysql:innodb_stats_on_metadata&amp;rev=1739713984&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2025-02-16T13:53:04+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>innodb_stats_on_metadata</title>
        <link>https://shiyoka.com/doku.php?id=mysql:innodb_stats_on_metadata&amp;rev=1739713984&amp;do=diff</link>
        <description>SHOW TABLE STATUS が遅い

「統計情報を更新する」オプションをoffにすると早くなる。


mysql&gt; SET GLOBAL innodb_stats_on_metadata=0;


公式

	&quot;
	&quot;この変数が有効 (この変数が作成される前からのデフォルト) な場合、SHOW TABLE STATUS や SHOW INDEX などのメタデータステートメントの実行時や、INFORMATION_SCHEMA テーブル TABLES または STATISTICS へのアクセス時に、InnoDB は統計情報を更新します。(これらの更新は、ANALYZE TABLE で行われるものに似ている。) 無効な場合、InnoDB はそれらの処理中に統計情報を更新しません。この変数を無効にすると、テーブルやインデックスを多数含むスキーマへのアクセス速度が改善される可能性があります。またその場合、InnoDB テーブルが関係するクエリーの実行計画の安定性も高まる可能性があります。…</description>
    </item>
    <item rdf:about="https://shiyoka.com/doku.php?id=mysql:innotop&amp;rev=1739713984&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2025-02-16T13:53:04+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>innotop</title>
        <link>https://shiyoka.com/doku.php?id=mysql:innotop&amp;rev=1739713984&amp;do=diff</link>
        <description>innotop

Download

&lt;https://code.google.com/archive/p/innotop/&gt;
― Download
―― innotop-1.9.1-1.el6.noarch.rpm
※CentOS6 + MySQL 5.6までなら、上記からDLできるrpmで動作可能。

&lt;https://github.com/innotop/innotop&gt;
※MySQL5.7など、最新版は上記からDLしてインストール

Install


# git clone https://github.com/innotop/innotop.git
# cd innotop
# yum install perl-DBI
# yum install perl-DBD-mysql
# yum install perl-ExtUtils-MakeMaker
# yum install perl-Time-HiRes
# yum install perl-TermReadKey
# perl Makefile.PL
# make install…</description>
    </item>
    <item rdf:about="https://shiyoka.com/doku.php?id=mysql:install_from_repository&amp;rev=1739713984&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2025-02-16T13:53:04+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>install_from_repository</title>
        <link>https://shiyoka.com/doku.php?id=mysql:install_from_repository&amp;rev=1739713984&amp;do=diff</link>
        <description>CentOS6.xにMySQLをyumでインストール


# cat /etc/redhat-release 
CentOS release 6.7 (Final)
# uname -a
Linux my01 2.6.32-573.el6.x86_64 #1 SMP Thu Jul 23 15:44:03 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux


リポジトリとインストール可能Ver</description>
    </item>
    <item rdf:about="https://shiyoka.com/doku.php?id=mysql:install_from_rpm_ver_5.6&amp;rev=1739713984&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2025-02-16T13:53:04+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>install_from_rpm_ver_5.6</title>
        <link>https://shiyoka.com/doku.php?id=mysql:install_from_rpm_ver_5.6&amp;rev=1739713984&amp;do=diff</link>
        <description>Install from rpm （Ver 5.6）


# wget http://dev.mysql.com/get/Downloads/MySQL-5.6/MySQL-devel-5.6.10-1.rhel5.x86_64.rpm/from/http://cdn.mysql.com/
# wget http://dev.mysql.com/get/Downloads/MySQL-5.6/MySQL-server-5.6.10-1.rhel5.x86_64.rpm/from/http://cdn.mysql.com/
# wget http://dev.mysql.com/get/Downloads/MySQL-5.6/MySQL-shared-5.6.10-1.rhel5.x86_64.rpm/from/http://cdn.mysql.com/
# wget http://dev.mysql.com/get/Downloads/MySQL-5.6/MySQL-client-5.6.10-1.rhel5.x86_64.rpm/from/http://cdn.mysql.com/
…</description>
    </item>
    <item rdf:about="https://shiyoka.com/doku.php?id=mysql:log_analyze&amp;rev=1739713984&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2025-02-16T13:53:04+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>log_analyze</title>
        <link>https://shiyoka.com/doku.php?id=mysql:log_analyze&amp;rev=1739713984&amp;do=diff</link>
        <description>ログの解析

全クエリログの取得開始


set global slow_query_log = 1;
set global slow_query_log_file = &#039;/var/log/mysql/mysql-slow-all.log&#039;;
set global long_query_time = 0;


1秒以上かかっているクエリのみログ出力


set global slow_query_log_file = &#039;/var/log/mysql/mysql-slow.log&#039;;
set global long_query_time = 1;</description>
    </item>
    <item rdf:about="https://shiyoka.com/doku.php?id=mysql:memo&amp;rev=1739713984&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2025-02-16T13:53:04+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>memo</title>
        <link>https://shiyoka.com/doku.php?id=mysql:memo&amp;rev=1739713984&amp;do=diff</link>
        <description>クエリーログに関するメモ

&lt;http://ijo.cc/it/ja/server/mysql-log-rotate/&gt;

&lt;http://www.hirohama.biz/mysql/2007/10/29-151044.html&gt;

&lt;http://www.orchid.halfmoon.jp/wiki/mysql_01.html&gt;</description>
    </item>
    <item rdf:about="https://shiyoka.com/doku.php?id=mysql:mem_use_calc&amp;rev=1739713984&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2025-02-16T13:53:04+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>mem_use_calc</title>
        <link>https://shiyoka.com/doku.php?id=mysql:mem_use_calc&amp;rev=1739713984&amp;do=diff</link>
        <description>メモリ使用量の公式


select
@@GLOBAL.KEY_BUFFER_SIZE + @@GLOBAL.INNODB_BUFFER_POOL_SIZE + @@GLOBAL.INNODB_LOG_BUFFER_SIZE + @@GLOBAL.INNODB_ADDITIONAL_MEM_POOL_SIZE + @@GLOBAL.NET_BUFFER_LENGTH as GLOBAL_BUFFER_SIZE,
@@GLOBAL.SORT_BUFFER_SIZE + @@GLOBAL.MYISAM_SORT_BUFFER_SIZE + @@GLOBAL.READ_BUFFER_SIZE + @@GLOBAL.JOIN_BUFFER_SIZE + @@GLOBAL.READ_RND_BUFFER_SIZE as THREAD_BUFFER_SIZE,
@@GLOBAL.KEY_BUFFER_SIZE + @@GLOBAL.INNODB_BUFFER_POOL_SIZE + @@GLOBAL.INNODB_LOG_BUFFER_SIZE + @@GLOBAL.INNODB_ADDITION…</description>
    </item>
    <item rdf:about="https://shiyoka.com/doku.php?id=mysql:myisam_to_innodb&amp;rev=1739713984&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2025-02-16T13:53:04+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>myisam_to_innodb</title>
        <link>https://shiyoka.com/doku.php?id=mysql:myisam_to_innodb&amp;rev=1739713984&amp;do=diff</link>
        <description>MyISAMからInnoDBに変換

ALTER TABLE


mysql&gt; ALTER TABLE tbl ENGINE=InnoDB;


ダンプファイル

MyISAMのダンプファイルを読み込んでENGINEの定義をInnoDBに置換しながら流し込む


[root@db ~]# zcat dbbackup.20140101.gz | sed &#039;s/ENGINE=MyISAM/ENGINE=INNODB/g&#039; | mysql -u root -pPASSWORD</description>
    </item>
    <item rdf:about="https://shiyoka.com/doku.php?id=mysql:mymemcheck&amp;rev=1739713984&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2025-02-16T13:53:04+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>mymemcheck</title>
        <link>https://shiyoka.com/doku.php?id=mysql:mymemcheck&amp;rev=1739713984&amp;do=diff</link>
        <description>mymemcheck

&lt;http://dsas.blog.klab.org/archives/50860867.html&gt;
KLab社製ツール。以下のチェックが可能。

	*  最低限必要な物理メモリの大きさ
	*  IA-32のLinuxでのヒープサイズの制限
	*  innodb_log_file_sizeの最大サイズ


# cd /root
# mkdir bin
# cd /bin
# curl -LOk http://xrl.us/cpanm
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  262k  100  262k    0     0  71760      0  0:00:03  0:00:03 --:--:-- 3276k
# ls
alsaunmute  dash           …</description>
    </item>
    <item rdf:about="https://shiyoka.com/doku.php?id=mysql:mysql57memo&amp;rev=1739713984&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2025-02-16T13:53:04+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>mysql57memo</title>
        <link>https://shiyoka.com/doku.php?id=mysql:mysql57memo&amp;rev=1739713984&amp;do=diff</link>
        <description>MySQL 5.7 に関するあれこれ

VerUP

既存の5.6から5.7へのアップデートは以下の手順で可能。
&lt;https://dev.mysql.com/doc/refman/5.7/en/upgrading.html#upgrade-procedure-inplace&gt;


# /usr/bin/mysql -V
/usr/bin/mysql  Ver 14.14 Distrib 5.6.29, for Linux (x86_64) using  EditLine wrapper

WALの内容をシャットダウン時にテーブルスペースに反映させる
# /usr/bin/mysql -u root -p -e &quot;show global variables like &#039;innodb_fast_shutdown&#039;;&quot;
Enter password: 
+----------------------+-------+
| Variable_name        | Value |
+----------------------+-------+
| innodb_fast_shutdow…</description>
    </item>
    <item rdf:about="https://shiyoka.com/doku.php?id=mysql:mysqldump&amp;rev=1739713984&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2025-02-16T13:53:04+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>mysqldump</title>
        <link>https://shiyoka.com/doku.php?id=mysql:mysqldump&amp;rev=1739713984&amp;do=diff</link>
        <description>mysqldump

help


# mysqldump --help                                                         
mysqldump  Ver 10.13 Distrib 5.6.28, for Linux (x86_64)
Copyright (c) 2000, 2015, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.

Dumping structure and contents of MySQL databases and tables.
Usage: mysqldump [OPTIONS] database [tables]
OR     mysqldump [OPTIONS] -…</description>
    </item>
    <item rdf:about="https://shiyoka.com/doku.php?id=mysql:mysqldump_events_error&amp;rev=1739713984&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2025-02-16T13:53:04+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>mysqldump_events_error</title>
        <link>https://shiyoka.com/doku.php?id=mysql:mysqldump_events_error&amp;rev=1739713984&amp;do=diff</link>
        <description>mysqldumpでevents_のエラー


# mysqldump -u root -p***** --single-transaction --flush-logs --all-databases | gzip &gt; /tmp/dbbackup.gz



-- Warning: Skipping the data of table mysql.event. Specify the --events option explicitly.


Ver5.1.8からmysqlデータベースにeventsテーブルが追加されていますが、「</description>
    </item>
    <item rdf:about="https://shiyoka.com/doku.php?id=mysql:mysqldump_pwd_sh&amp;rev=1739713984&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2025-02-16T13:53:04+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>mysqldump_pwd_sh</title>
        <link>https://shiyoka.com/doku.php?id=mysql:mysqldump_pwd_sh&amp;rev=1739713984&amp;do=diff</link>
        <description>sshログインでパスワードが必要な時のmysqldumpを取るシェル


#!/bin/sh

# パラメータ
DAY=`date +%Y%m%d_%H%M%S`
DUMP_FILE=dump_$DAY.sql
DB_USER=root
DB_PASS=pwd
DB_NAME=user_db

#HOST=&quot;192.168.95.16&quot;
HOST=&quot;192.168.80.101&quot;
USER=&quot;root&quot;
PASS=&quot;root001&quot;
TARGET_DIR=&quot;/var/log_backup&quot;
yes=&quot;yes&quot;


###############################################################################
# 管理サーバへSCPでバックアップ
# except＋SCPでシェルスクリプト内にパスワードを持たせるのは
# bad know-howとの指摘も。。。
#

mysqldump -c --user=$DB_USER --password=$DB_PASS $DB_NAME &gt; $DUMP_FILE
gzip $DU…</description>
    </item>
    <item rdf:about="https://shiyoka.com/doku.php?id=mysql:mysqltuner&amp;rev=1739713984&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2025-02-16T13:53:04+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>mysqltuner</title>
        <link>https://shiyoka.com/doku.php?id=mysql:mysqltuner&amp;rev=1739713984&amp;do=diff</link>
        <description>MySQLTuner-perl

&lt;http://mysqltuner.com/&gt;
&lt;https://github.com/major/MySQLTuner-perl&gt;


# cd /usr/local/src/
# wget -O MySQLTuner.zip https://github.com/rackerhacker/MySQLTuner-perl/archive/master.zip 
# unzip MySQLTuner.zip
# cd MySQLTuner-perl-master
# chmod +x mysqltuner.pl</description>
    </item>
    <item rdf:about="https://shiyoka.com/doku.php?id=mysql:mysql_bench&amp;rev=1739713984&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2025-02-16T13:53:04+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>mysql_bench</title>
        <link>https://shiyoka.com/doku.php?id=mysql:mysql_bench&amp;rev=1739713984&amp;do=diff</link>
        <description>mysql bench

概要

perl で書かれた mysql に使えるベンチマークソフト。
内部で定義されているテストパターンを実行して、トータル時間、途中のWarningなどを取得。
各種ベンチマークにはmysqlインストール時に作られる「test」データベースを利用する。</description>
    </item>
    <item rdf:about="https://shiyoka.com/doku.php?id=mysql:mysql_replication_build&amp;rev=1739713984&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2025-02-16T13:53:04+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>mysql_replication_build</title>
        <link>https://shiyoka.com/doku.php?id=mysql:mysql_replication_build&amp;rev=1739713984&amp;do=diff</link>
        <description>Mysqlレプリケーション構築

○ Mysql
　◆ インストール


# yum -y install mysql-server


　◆ Master


# vi /etc/my.cnf



[mysqld]
log-bin=mysql-bin
server-id=1



# /etc/rc.d/init.d/mysqld start
# mysql -u root
mysql&gt; GRANT REPLICATION SLAVE ON *.* TO &#039;repl&#039;@&#039;192.168.80.0/255.255.255.0&#039; IDENTIFIED BY &#039;slavepass&#039;;
mysql&gt; FLUSH PRIVILEGES;</description>
    </item>
    <item rdf:about="https://shiyoka.com/doku.php?id=mysql:mysql_secure_installation&amp;rev=1739713984&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2025-02-16T13:53:04+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>mysql_secure_installation</title>
        <link>https://shiyoka.com/doku.php?id=mysql:mysql_secure_installation&amp;rev=1739713984&amp;do=diff</link>
        <description>mysql_secure_installation

Set root password? [Y/n]

	&quot; UPDATE mysql.user SET Password=PASSWORD(&#039;$esc_pass&#039;) WHERE User=&#039;root&#039;;&quot;

Remove anonymous users? [Y/n]

	&quot; DELETE FROM mysql.user WHERE User=&#039;&#039;;&quot;

Disallow root login remotely? [Y/n]

	&quot; DELETE FROM mysql.user WHERE User=&#039;root&#039; AND Host NOT IN (&#039;localhost&#039;, &#039;127.0.0.1&#039;, &#039;::1&#039;);</description>
    </item>
    <item rdf:about="https://shiyoka.com/doku.php?id=mysql:mysq_semi-sync_replication_build&amp;rev=1739713984&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2025-02-16T13:53:04+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>mysq_semi-sync_replication_build</title>
        <link>https://shiyoka.com/doku.php?id=mysql:mysq_semi-sync_replication_build&amp;rev=1739713984&amp;do=diff</link>
        <description>Mysq semi-sync レプリケーション構築


mysql&gt; INSTALL PLUGIN rpl_semi_sync_master SONAME &#039;semisync_master.so&#039;;
mysql&gt; show plugins;
mysql&gt; show variables like &#039;innodb_flush_log_at_trx_commit&#039;;



vi /etc/my.cnf



innodb_flush_log_at_trx_commit = 1

server-id=1001
log-bin                         = log_bin/mysql-bin
log-bin-index                   = log_bin/log_bin.index
max_binlog_size                 = 200M
expire_logs_days                = 3
binlog_format                   = mixed
rpl_semi_sync_master_en…</description>
    </item>
    <item rdf:about="https://shiyoka.com/doku.php?id=mysql:onlineddl&amp;rev=1739713984&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2025-02-16T13:53:04+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>onlineddl</title>
        <link>https://shiyoka.com/doku.php?id=mysql:onlineddl&amp;rev=1739713984&amp;do=diff</link>
        <description>MySQL 5.6 のオンラインDDL

インデックスの追加／削除、カラムの追加／削除などは、テーブルロックが掛からずに実行できる。
※サーバーのスペックによっては、パフォーマンスに影響は出る。
カラムのデータ型変更など、一部の処理は従来通り、テーブルロックが掛かる。</description>
    </item>
    <item rdf:about="https://shiyoka.com/doku.php?id=mysql:oracle_row_number&amp;rev=1739713984&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2025-02-16T13:53:04+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>oracle_row_number</title>
        <link>https://shiyoka.com/doku.php?id=mysql:oracle_row_number&amp;rev=1739713984&amp;do=diff</link>
        <description>oracleのrow_numberっぽい動き

変数を利用して、結果テーブルに采番する


set @r = 0;
SELECT (@r:=@r+1) as row, tables.* FROM tables;</description>
    </item>
    <item rdf:about="https://shiyoka.com/doku.php?id=mysql:partitioning&amp;rev=1739713984&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2025-02-16T13:53:04+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>partitioning</title>
        <link>https://shiyoka.com/doku.php?id=mysql:partitioning&amp;rev=1739713984&amp;do=diff</link>
        <description>MySQLのパーティション（Ver5.6にて）

パーティション付きのテーブル作成


mysql&gt; CREATE TABLE `log_user_action` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` bigint(20) NOT NULL,
  `type` varchar(255) NOT NULL,
  `reg_date` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`,`reg_date`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8
PARTITION BY RANGE COLUMNS(reg_date)
(PARTITION p20151201 VALUES LESS THAN (&#039;2015-12-02&#039;),
 PARTITION p20151202 VALUES LESS THAN (&#039;2015-12-03&#039;),
 P…</description>
    </item>
    <item rdf:about="https://shiyoka.com/doku.php?id=mysql:phpmyadmin_environment&amp;rev=1739713984&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2025-02-16T13:53:04+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>phpmyadmin_environment</title>
        <link>https://shiyoka.com/doku.php?id=mysql:phpmyadmin_environment&amp;rev=1739713984&amp;do=diff</link>
        <description>phpmyadmin構築

最新版のダウンロード

公式サイトから最新版を確認、ダウンロードする。
公式サイト：&lt;http://www.phpmyadmin.net/home_page/index.php&gt;
ダウンロード：&lt;http://www.phpmyadmin.net/home_page/downloads.php&gt;


# wget http://prdownloads.sourceforge.net/phpmyadmin/phpMyAdmin-4.2.11-all-languages.tar.gz</description>
    </item>
    <item rdf:about="https://shiyoka.com/doku.php?id=mysql:phpmyadmin_ex&amp;rev=1739713984&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2025-02-16T13:53:04+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>phpmyadmin_ex</title>
        <link>https://shiyoka.com/doku.php?id=mysql:phpmyadmin_ex&amp;rev=1739713984&amp;do=diff</link>
        <description>phpmyadminの拡張機能

管理用テーブル作成

./scripts/create_tables.sql を実行


# mysql -uroot -p
インポート
mysql&gt; source /var/www/phpMyAdmin/examples/create_tables.sql
インポートの確認
mysql&gt; show databases;
mysql&gt; use phpmyadmin;
mysql&gt; show tables;</description>
    </item>
    <item rdf:about="https://shiyoka.com/doku.php?id=mysql:profiling&amp;rev=1739713984&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2025-02-16T13:53:04+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>profiling</title>
        <link>https://shiyoka.com/doku.php?id=mysql:profiling&amp;rev=1739713984&amp;do=diff</link>
        <description>プロファイリング


mysql&gt; SET Profiling=1;

～～～

mysql&gt; SHOW PROFILES;
mysql&gt; SHOW PROFILES SOURCE;
mysql&gt; SHOW PROFILES SOURCE FOR QUERY;</description>
    </item>
    <item rdf:about="https://shiyoka.com/doku.php?id=mysql:query&amp;rev=1739713984&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2025-02-16T13:53:04+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>query</title>
        <link>https://shiyoka.com/doku.php?id=mysql:query&amp;rev=1739713984&amp;do=diff</link>
        <description>クエリのTips

特定カラムでグループ化して、紐づくIDのリストを取得
 item_id  type  1        1     2        2     3        2     4        1    

SELECT 
    type
   ,group_concat(item_id separator &#039;,&#039;) as item_list
FROM
    item_mst
WHERE
    start_date &lt; NOW()
AND
    (end_date IS NULL OR NOW() &lt; end_date)
GROUP BY
    type</description>
    </item>
    <item rdf:about="https://shiyoka.com/doku.php?id=mysql:query_for_file&amp;rev=1739713984&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2025-02-16T13:53:04+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>query_for_file</title>
        <link>https://shiyoka.com/doku.php?id=mysql:query_for_file&amp;rev=1739713984&amp;do=diff</link>
        <description>クエリ結果をファイル出力


mysql -u ユーザー名 -p データベース名 &gt;出力ファイル名
Enter password: パスワード
クエリ;
quit


	*  -t：成形して出力
	*  -N：項目名を出力しない
	*  -H：HTML形式のtable要素で出力</description>
    </item>
    <item rdf:about="https://shiyoka.com/doku.php?id=mysql:realtime_processlist&amp;rev=1739713984&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2025-02-16T13:53:04+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>realtime_processlist</title>
        <link>https://shiyoka.com/doku.php?id=mysql:realtime_processlist&amp;rev=1739713984&amp;do=diff</link>
        <description>プロセスリストのリアルタイム監視


# vi dbpass



password



# watch &#039;mysql -u root -p`cat dbpass` -h localhost -e &quot;show processlist&quot;&#039;</description>
    </item>
    <item rdf:about="https://shiyoka.com/doku.php?id=mysql:replicate_error&amp;rev=1739713984&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2025-02-16T13:53:04+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>replicate_error</title>
        <link>https://shiyoka.com/doku.php?id=mysql:replicate_error&amp;rev=1739713984&amp;do=diff</link>
        <description>レプリケーションのエラー対応

Query caused different errors on master and slave.

エラー内容を見て、エラーになったSQLがスキップして問題なければスキップする


mysql&gt; stop slave;
mysql&gt; SET GLOBAL SQL_SLAVE_SKIP_COUNTER = 1; （エラーをスキップ）
mysql&gt; start slave;
mysql&gt; show slave status \G</description>
    </item>
    <item rdf:about="https://shiyoka.com/doku.php?id=mysql:slowlog_rotate&amp;rev=1739713984&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2025-02-16T13:53:04+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>slowlog_rotate</title>
        <link>https://shiyoka.com/doku.php?id=mysql:slowlog_rotate&amp;rev=1739713984&amp;do=diff</link>
        <description>スローログの自動ローテート

アカウント情報の設定フィルを作成


# vi /root/.my.cnf



[client]
user = root
password = rootpassword


rootしかアクセスできないように権限設定


# chown root:root /root/.my.cnf
# chmod 600 /root/.my.cnf</description>
    </item>
    <item rdf:about="https://shiyoka.com/doku.php?id=mysql:slowlog_rotate_manual&amp;rev=1739713984&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2025-02-16T13:53:04+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>slowlog_rotate_manual</title>
        <link>https://shiyoka.com/doku.php?id=mysql:slowlog_rotate_manual&amp;rev=1739713984&amp;do=diff</link>
        <description>スローログの手動ローテート


# cd /var/log/mysql
# ll
合計 134308
-rw-rw---- 1 mysql mysql 137367185 11月  7 01:20 mysql-slow.log
-rw-r----- 1 mysql mysql     22898  9月 27 01:04 mysql.log
# mv mysql-slow.log mysql-slow.log.old
# mysql -u root -p
Enter password: 
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 304599784
Server version: 5.5.27-log MySQL Community Server (GPL) by Remi

Copyright (c) 2000, 2011, Oracle and/or its affiliates. All rights reserved.

Oracle is a re…</description>
    </item>
    <item rdf:about="https://shiyoka.com/doku.php?id=mysql:ssh_tunnel&amp;rev=1739713984&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2025-02-16T13:53:04+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>ssh_tunnel</title>
        <link>https://shiyoka.com/doku.php?id=mysql:ssh_tunnel&amp;rev=1739713984&amp;do=diff</link>
        <description>SSHトンネル経由でMySQLに接続


ssh -f mc-db04 -L 3307:localhost:3306 -N -4


mc-db04の3306ポート（mysql）をlocalhsotの3307ポートにマッピングする。

	&quot; f：バックグラウンドで実行
 N：リモートでコマンドを実行しない（SSHトンネリングのみに使用する）</description>
    </item>
    <item rdf:about="https://shiyoka.com/doku.php?id=mysql:temporary&amp;rev=1739713984&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2025-02-16T13:53:04+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>temporary</title>
        <link>https://shiyoka.com/doku.php?id=mysql:temporary&amp;rev=1739713984&amp;do=diff</link>
        <description>テンポラリほにゃらら

MySQLの一時テーブル・一時ファイル

	*  一時テーブル

クエリ実行時にMySQLが作成するテーブル

	*  一時ファイル

order byやgroup byでソートするときに使われるﾌｧｲﾙ</description>
    </item>
    <item rdf:about="https://shiyoka.com/doku.php?id=mysql:tuning&amp;rev=1739713984&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2025-02-16T13:53:04+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>tuning</title>
        <link>https://shiyoka.com/doku.php?id=mysql:tuning&amp;rev=1739713984&amp;do=diff</link>
        <description>チューニングの話

MySQL 5.1のmysqldumpslowで快速チューニング - SH2の日記
&lt;http://d.hatena.ne.jp/sh2/20090414&gt;

実録MySQLのチューニング 春の陣 - (ひ)メモ
&lt;http://d.hatena.ne.jp/hirose31/20100517/1274094712&gt;

mysqlパフォーマンスチューニング概要
&lt;https://www.google.co.jp/url?sa=t&amp;rct=j&amp;q=&amp;esrc=s&amp;source=web&amp;cd=1&amp;cad=rja&amp;ved=0CDAQFjAA&amp;url=http%3A%2F%2Fwww.oracle.com%2Ftechnetwork%2Fjp%2Fondemand%2Fdatabase%2Fmysql%2Fmysql-perftun-1484759-ja.pdf&amp;ei=FIk5UcHhNoSPkwXo04CgDA&amp;usg=AFQjCNGWnIF2OqoshahcA3xDU5GlJtwf7w&amp;bvm=bv.43287494,d.dGI&gt;

innodb パフォーマンスチューニ…</description>
    </item>
    <item rdf:about="https://shiyoka.com/doku.php?id=mysql:warmup&amp;rev=1739713984&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2025-02-16T13:53:04+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>warmup</title>
        <link>https://shiyoka.com/doku.php?id=mysql:warmup&amp;rev=1739713984&amp;do=diff</link>
        <description>ウォームアップ用スクリプト


#/bin/bash

USR=&#039;root&#039;
PWD=&#039;password&#039;

for TABLENAME in `mysql -u ${USR} -p${PWD} -N -s -e &quot;SELECT concat(TABLE_SCHEMA,\&quot;.\&quot;,TABLE_NAME) as TABLE NAME FROM information_schema.tables WHERE TABLE_SCHEMA like &#039;PREFIX_%&#039; AND TABLE_TYPE = &#039;BASE TABLE&#039; AND ENGINE = &#039;InnoDB&#039;;&quot;`;
do
    mysql -u ${USR} -p${PWD} -N -s -e &quot;SELECT * FROM $TABLENAME;&quot; &gt; /dev/null
done;

###
### -N: カラム名を出力しない
### -s: セパレータをタブに置換
###</description>
    </item>
    <item rdf:about="https://shiyoka.com/doku.php?id=mysql:xtrabackup&amp;rev=1739713984&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2025-02-16T13:53:04+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>xtrabackup</title>
        <link>https://shiyoka.com/doku.php?id=mysql:xtrabackup&amp;rev=1739713984&amp;do=diff</link>
        <description>Percona XtraBackup

Add Persona yum repository


# yum install http://www.percona.com/downloads/percona-release/redhat/0.1-3/percona-release-0.1-3.noarch.rpm


Testing the repository


# yum list | grep percona-xtrabackup
percona-xtrabackup.x86_64                  2.3.4-1.el6                 percona-release-x86_64
percona-xtrabackup-20.x86_64               2.0.8-587.rhel6             percona-release-x86_64
percona-xtrabackup-20-debuginfo.x86_64     2.0.8-587.rhel6             percona-release-x86…</description>
    </item>
</rdf:RDF>
