• skip to content

fl8 Wiki

User Tools

  • Log In

Site Tools

  • Recent Changes
  • Media Manager
  • Sitemap
You are here: Dokuwiki.fl8.jp » code
Trace: • 2019.02.11 海馬の尻尾 • 07 PEAR Path 確認 • 28 Docker React • 2020.11.05 draw.io • MySQLのインストール • 2016.01.04 DOMEMO (ドメモ) • 2016.08.16 Dokuwikiアップデート(Elenor of Tsort) • Postfix - OP25B環境でFQDNを持たないホストからメールを投げる方法(SMTPリレー) • 03 Windows 2008 Server R2でAIK • Vyatta OpenVPN Server/Client

code

Search

You can find the results of your search below.

Ends with
  • Exact match
  • Starts with
  • Ends with
  • Contains
@01_linux:11_データベース:01_mysql
  • Any namespace
Any time
  • Any time
  • Past week
  • Past month
  • Past year
Sort by hits
  • Sort by hits
  • Sort by last modified

Fulltext results:

05 Percona Xtrabackup
80 Hits, Last modified: 6 years ago
ンストール ===== === 1. perconaのyumレポジトリをインストール === <code console> # rpm -Uhv http://www.percona.com/downlo... ercona-release/percona-release-0.0-1.x86_64.rpm </code> == MySQL 5.1の場合 == <code> curl -L -O https://www.percona.com/downloads/XtraBackup/XtraBackup-2.0.8/... ercona-xtrabackup-20-2.0.8-587.rhel6.x86_64.rpm </code> === 2. perconaをdisableへ === <code console> # v
01 Galera構築
24 Hits, Last modified: 8 years ago
/Downloads/MySQL-5.5/|MySQL-client最新版]] ダウンロード <code> # wget https://launchpad.net/galera/2.x/23.2.2/+... ySQL-5.5/MySQL-client-5.5.30-1.rhel5.x86_64.rpm </code> インストール <code console> # rpm -ivh galera-23.2.1-1.rhel5.x86_64.rpm # rpm -ivh MySQL-client-5.5.24-1.rh... SQL-server-5.5.23_wsrep_23.6-1.rhel5.x86_64.rpm </code> ==== もしMySQLが入っていたら ==== 先にアンインストールしておく <code co
13 mysql56 + galera3
24 Hits, Last modified: 9 years ago
===== ===== 1.リポジトリインストール ===== === Galera === <code> # cat <<- '__GALERA__' > /etc/yum.repos.d/galera... uster.com enabled = 0 gpgcheck = 1 __GALERA__ </code> === Percona Xtrabackup === <code> # rpm -ivh http://www.percona.com/downloads/percona-release/redhat... le = 0/g' /etc/yum.repos.d/percona-release.repo </code> ===== 2.インストール ===== === MySQL56+Garala3のインストー
52 MySQLQ sysbench 1.0
22 Hits, Last modified: 4 years ago
新しいsysbenchはちょっとオプションが違った。 ===== インストール ===== <code> # curl -s https://packagecloud.io/install/reposi... m.sh | sudo bash # sudo yum -y install sysbench </code> <code> apt -y install sysbench </code> <code> yum -y install sysbench </code> ===== 準備 ===== ==== DB作成 ====
11 Galera同期(複数台構成)
20 Hits, Last modified: 7 years ago
ue>OK</color>| ===== 1.稼働中のノードでフルバックアップ ===== <code> [node1]# mkdir -p /backup/xtrabackup/base/ [node... -backup --no-timestamp /backup/xtrabackup/base/ </code> === user/passwordを指定する場合 === <code> [node1]# innobackupex --user [root] --password [password] --gale... -backup --no-timestamp /backup/xtrabackup/base/ </code> ===== 2.バックアップをコピー ===== <code> [node2]# rsync
18 CentOS7 MariaDB
19 Hits, Last modified: 6 years ago
== 18 CentOS7 MariaDB ====== ===== インストール ===== <code> # yum install mariadb mariadb-server </code> ===== 起動 ===== <code> # systemctl enable mariadb.service # systemctl start mariadb.service </code> ===== 初期設定 ===== <code> # mysql_secure_installa
03 InnoDBテーブル分割
12 Hits, Last modified: 12 years ago
oDBの違い]] ====== テーブル分割 ====== ===== ダンプ ===== <code console> # mysqldump -u root -p --no-autocommit --all-databases > all_backup.sql </code> ===== MySQL 停止 ===== <code console> # /etc/init.d/mysql stop </code> ===== my.cnf修正 ===== <code console> # vi /etc/my.cnf [mysqld
50 MySQLベンチマーク(sysbench)
12 Hits, Last modified: 4 years ago
ス:01_mysql:52_sysbench_1.0]] ===== インストール ===== <code> # yum -y install sysbench </code> ==== ベンチ用DB、ユーザ作成 ==== <code> mysql> create database sbtest charset=utf8; Query OK, 1 row affected (0... ASSWORD]'; Query OK, 0 rows affected (0.02 sec) </code> ==== 初期設定 ==== <code> sysbench \ --test=oltp \
02 MySQL max_connections
10 Hits, Last modified: 3 years ago
MySQL max_connections ====== ===== 確認方法 ===== <code console> mysql> show GLOBAL VARIABLES LIKE "max_%... -----------------------+----------------------+ </code> 起動している間に、最高どこまでコネクションされたか。 <code console> mysql> show status like 'Max%'; +----------------------+-... --------------+-------+ 1 row in set (0.01 sec) </code> 現在のコネクション数。 <code console> mysql> show status l
09 Galera + innodb_flush_log_at_trx_commit
8 Hits, Last modified: 10 years ago
スが上がる === innodb_flush_log_at_trx_commit=1 === <code> # mysqlslap --no-defaults --concurrency=20 --ite... s: 20 Average number of queries per client: 50 </code> === innodb_flush_log_at_trx_commit=2 === <code> # mysqlslap --no-defaults --concurrency=20 --iterati... s: 20 Average number of queries per client: 50 </code> ===== 2.障害試験 ===== [[http://planet.mysql.com/e
04 MyISAMからInnoDBへ変換
6 Hits, Last modified: 12 years ago
====== 04 MyISAMからInnoDBへ変換 ====== <code> alter table hoge_table_name engine = InnoDB; </code> これで一括変換できる。 <code> dbname="test_db" for i in `mysql $dbname -e 'show tables'| grep -v Tables_in_` do ... dbname -e "alter table $i engine = InnoDB" done </code> ===== エラー===== FULLTEXT はMyISAMでしかサポートされてない。 <
15 InnoDB テーブルロック
6 Hits, Last modified: 7 years ago
ンデックスが張られているカラムで検索した場合以外はテーブルロックになってしまう</color> <code> mysql> select * from lock_test; +----+--------+-... +----+--------+-----+ 3 rows in set (0.02 sec) </code> <code> create table lock_test ( id int primary key auto_increment, name varchar(32) not null, ... --------------+-------+ 1 row in set (0.02 sec) </code> ===== インデックス張っている方は行ロックとなる ===== <code> mysql>
06 MySQL パスワードなしログイン
4 Hits, Last modified: 10 years ago
ードなしログイン ====== ===== 1. /root/.my.cnf用意 ===== <code> # cat > /root/.my.cnf [client] host=localhost us... host=localhost user = root password = hogehoge </code> ===== 2. パーミッション変更 ===== <code> # chmod 600 /root/.my.cnf </code> {{tag>mysql}}
20 CentOS7 MariDB Galera
4 Hits, Last modified: 6 years ago
riadb_repo_setup | sudo bash ===== インストール ===== <code> # yum install MariaDB-server MariaDB-server 10... 1.el7.centos galera-4 26.4.3-1.rhel7.el7.centos </code> ===== 初期設定 ===== # systemctl start mariadb ... ecure_installation ===== character-set追加 ===== <code|/etc/my.cnf.d/server.cnf> [mariadb] character-set-server=utf8 </code> {{tag>mysql galera mariadb}}
51 MySQLベンチマーク(mysqlslap)
4 Hits, Last modified: 10 years ago
== 実行 ===== 20スレッド 1000行データ 1000クエリ update(更新) <code> # mysqlslap --no-defaults \ --concurrency=20 \ -... s: 20 Average number of queries per client: 50 </code> ===== mysqlslap オプション ===== <code> # mysqlslap --help mysqlslap Ver 1.0 Distrib 5.5.24, for Linux (x... sion Output version information and exit. </code> [[http://qiita.com/morozumi_h/items/39348f2277f
07 INNODB/MyISAM 確認方法
2 Hits, Last modified: 10 years ago
10 InnoDBパフォーマンス
2 Hits, Last modified: 13 months ago
12 Galera Permission Error
2 Hits, Last modified: 9 years ago
14 MariaDB
2 Hits, Last modified: 9 years ago
19 MySQL ログローテート
2 Hits, Last modified: 5 years ago
21 MySQL REGEXP 正規表現
2 Hits, Last modified: 6 years ago
22 INNODB innodb_buffer_pool_size を算出
2 Hits, Last modified: 6 years ago

Page Tools

  • Show page
  • Old revisions
  • Backlinks
  • Back to top
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Noncommercial-Share Alike 4.0 International
CC Attribution-Noncommercial-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki