1985 件中 1531 - 1540 件を表示
« 前の 10 件 | 次の 10 件 »
Displaying posts with tag: MySQL (reset)
優れたMySQL DBAを見分ける27+3の質問

「優れたPerlプログラマを見分ける27の質問」の日本語訳というエントリが人気だったので、MySQL版をやってみた。題して、「優れたMySQL DBAを見分ける27+3の質問(漢バージョン)」。腕に覚えのある人はぜひ試してみて欲しい。

MySQLのサーバープロセスはいくつある? rootユーザーのパスワードを忘れたときの回復手順 MySQLをオンラインバックアップする方法を3つ。(もっとでも可) InnoDBのデータファイルが作成可能な場所はどこか。 InnoDBのデフォルトの分離レベルは? ネクストキーロックについて説明せよ。 ロールバックセグメントにはどのようなデータが格納されるか? InnoDBでデッドロックが発生したときの挙動、および詳細な状態を確認する方法。 MyISAMがサポートしている特殊なインデックス2つ。 …

[さらに読む]
show tables like 〜の内容でテーブル削除(drop table)

JUGEMテーマ:コンピュータ

このような場合、MySQLのコマンド一発、というわけにはいきませんので、show tablesの出力結果からDDL文を作成します。わかりやすいように三段階で説明します。スクリプト自体は最後のものだけでOKです。

第一段階: テーブルのリストを作成してみる。例えばtで始まるテーブル名は以下のとおり。カラム名や表形式の枠をとりさるために-N -s しているところがミソです。

C:¥Program Files¥MySQL¥MySQL Server 5.5>mysql -uroot -proot -N -s -e "use test;show tables like 't%';"
t10
t100
t101
t2
t3
t4
t5

第二段階: …

[さらに読む]
How to debug the mysql procedure

When we use the mysql database, we must use some procedure or functions to dispose the data or monitor the database,so we must write the procedures, but if the logic is very complex,we must to debug it, but now mysql can't provide the better tools,so google it and find two tools.
one is dbforge studio for mysql, the professional edition's price less than  $50.
the other is myProcDebugger,you can get the code from link,it's open source tool.

MYSQL 5.1.50 and MYSQL5.5.8 Performance Test Report


   



picture(1)





picture(2)



MYSQL5.5 announce the innodb performance improve high, we can get the oracle test report as picture(1). with the excited mood,I test the Mysql5.1.50 buid in/plugin and mysql5.5.8,but the result is discouraging, my test report as picture(2). my server and configure info as following:Cpu/mem:Intel(R) Xeon(R)  E5620 …

[さらに読む]
Performance Test for mysql handlersocket(1)

Get the Handlesocket info by Yoshinori  blog,I test it by perl client and get the expected report.
a)Process=16 and request=1000000*16   

QPS:130429Mysql server Cpu(s): 29.0%us, 20.6%sy 
b)Process=32 and request=1000000*32

QPS:268294Mysql server Cpu(s): 58.1%us, 27.8%sy
c)Process=64 and request=1000000*64

QPS:291960Mysql server Cpu(s): 58.8%us, 28.7%sy

my server configuration as following:
Intel(R) Xeon(R) E5620 X86-64 2.40GHz
2 CPU x 8 Cores/CPU
Linux 2.6.9
32 GB RAM
CentOS release 5.3

How to improve the mysql write performance

when we use the mysql replication, If the sync_binlog
is not set to 1, there is a risk of corruption of the binary log if the
server crashes. But, in many filesystems/OS, sync_binlog=1 is currently way
too slow (sometimes 2-4 times slower than set to 0). we can solve these by following solutions:
1)wait the mysql version upgrade to 5.6,we can get the information from http://forge.mysql.com/worklog/task.php?id=4925

2)change the linux file system to solaris ZFS or use Linux XFS. we can get the information from peter's URL:
http://www.mysqlperformanceblog.com/2009/01/21/beware-ext3-and-sync-binlog-do-not-play-well-together/

3)we want to change the OS or file system,we can …

[さらに読む]
MYSQL master-slave automatic switch mechanism

when when use master1-master2-slave1 structure,if master1 crash, the slave1 can automatic switch to master2,how to do? refer to http://onlamp.com/lpt/a/6549 and I realize it by SQL.you can get the code from:
http://forge.mysql.com/tools/tool.php?id=306

mysqlコマンドラインツールでつかってほシー、二つのC(シー)。

JUGEMテーマ:コンピュータ

最近Windows上でmysqlコマンドラインツールを頻繁に使っている私です。

mysqlコマンドラインツールは、様々な起動オプションやコマンドを持っていますので、
なかなか全て覚えきれません。今日は対話的に利用する際に便利な二つのC(シー)を紹介します。

1. ¥c
2. Ctrl+c

1. ¥c
mysqlコマンドラインで、コマンドを入力していて「実は全然思っていたのではなかった、取り消したい」
と思うときに使います。例えば、

mysql> alter table t1 add columnくらいまで、タイプして「あれー、そもそもalter tableじゃなかった」

[さらに読む]
[mysql][spider]MySQL 5.5対応したSpiderストレージエンジンをインストールする

なんか cmake 失敗するなーと思ったら、実行権限がないディレクトリが含まれててその中のファイルが読めないのでよしなに実行権限あたえて cmake してください。

cd /usr/local/src
wget "http://launchpad.net/spiderformysql/spider-2.x/2.24-for-5.5.8/+download/mysql-5.5.8-spider-2.24-vp-0.13-hs-1.0.tgz"
tar zxvf mysql-5.5.8-spider-2.24-vp-0.13-hs-1.0.tgz
cd mysql-5.5.8-spider-2.24-vp-0.13-hs-1.0
chmod +x storage/spider/hs_client
cmake -DCMAKE_INSTALL_PREFIX=/usr/local/mysql-5.5.8-spider -DDEFAULT_CHARSET=utf8 -DDEFAULT_COLLATION=utf8_general_ci -DWITH_PIC=1 .
make
make install
cd /usr/local
ln -nfs mysql-5.5.8-spider mysql
cd mysql
./scripts/mysql_install_db --user=kamipo
/usr/local/mysql/bin/mysqld_safe &
wget "http://launchpad.net/spiderformysql/spider-2.x/2.24-for-5.5.8/+download/spider-src-2.24-for-5.5.8.tgz"
tar zxvf spider-src-2.24-for-5.5.8.tgz
mysql -u root -v < install_spider.sql
[さらに読む]
[MySQL][Spider][VP][Other]Spider-2.24 VP-0.13リリース

Spiderストレージエンジンのバージョン 2.24(beta)とVartical Partitioningのバージョン 0.13(beta)をリリースしました。
Spiderストレージエンジンは、database sharding用のストレージエンジンです。
http://spiderformysql.com/
Vertical Partitioningストレージエンジンは、テーブルのVertical Partitioning用のストレージエンジンです。
http://launchpad.net/vpformysql

今回の主な変更は以下です。
Spider
・MySQL 5.5 対応
・handlersocket対応
 handlersocketから、Spiderを経由してさらにhandlersocketを呼び出すことが可能になりました。これにより、Spiderによりshardingされたデータベースにhandlersocketでアクセスできるようになります。

[さらに読む]
1985 件中 1531 - 1540 件を表示
« 前の 10 件 | 次の 10 件 »