2030 件中 2011 - 2020 件を表示
« 前の 10 件 | 次の 10 件 »
Displaying posts with tag: MySQL (reset)
mysqlコマンドで、テーブル名とかカラム名の補完(completion)をする方法

追記: rehash(auto-rehashも含む)すると、SQL文の補完(seleでタブ打鍵とか)が効かなくなるよと、はす向かいの人に教えてもらいました。
個人的には、SQLは「mysql> help select」とかでオンラインヘルプがびょっと出るので、スキーマの補完ができるんならSQLの補完はとりあえずあきらめてもいいかなと思っています。



[さらに読む]
M の買収

こんにちは。
巷を騒がせている Sun による MySQL の買収に関してちょっと個人的に注目した言葉を紹介しておきます。 But as I pointed out, we heard some paradoxical things, too. CTO's at startups and web companies disallow the usage of products that aren't free and open source. They need and want access to source code to enable optimization and rapid problem resolution (although they're happy to pay for support if they see value). Alternatively, more traditional CIO's disallow the usage of products that aren't backed by commercial support relationships - they're more comfortable relying on vendors like Sun to manage global, mission critical infrastructure.

This puts products like MySQL in an interesting position. They're a part of every web company's infrastructure, to be sure. And though many of the more traditional companies use MySQL (from auto companies to financial institutions to banks and …

[さらに読む]
M の買収

こんにちは。
巷を騒がせている Sun による MySQL の買収に関してちょっと個人的に注目した言葉を紹介しておきます。 But as I pointed out, we heard some paradoxical things, too. CTO's at startups and web companies disallow the usage of products that aren't free and open source. They need and want access to source code to enable optimization and rapid problem resolution (although they're happy to pay for support if they see value). Alternatively, more traditional CIO's disallow the usage of products that aren't backed by commercial support relationships - they're more comfortable relying on vendors like Sun to manage global, mission critical infrastructure.

This puts products like MySQL in an interesting position. They're a part of every web company's infrastructure, to be sure. And though many of the more traditional companies use MySQL (from auto companies to financial institutions to banks and …

[さらに読む]
M の買収

こんにちは。
巷を騒がせている Sun による MySQL の買収に関してちょっと個人的に注目した言葉を紹介しておきます。 But as I pointed out, we heard some paradoxical things, too. CTO's at startups and web companies disallow the usage of products that aren't free and open source. They need and want access to source code to enable optimization and rapid problem resolution (although they're happy to pay for support if they see value). Alternatively, more traditional CIO's disallow the usage of products that aren't backed by commercial support relationships - they're more comfortable relying on vendors like Sun to manage global, mission critical infrastructure.

This puts products like MySQL in an interesting position. They're a part of every web company's infrastructure, to be sure. And though many of the more traditional companies use MySQL (from auto companies to financial institutions to banks and …

[さらに読む]
MySQLのInnoDBでのデッドロック

こんにちは、mixi開発部にてアプリケーション開発をしていますyouheiです。
今回は、MySQL-5.0.45のInnoDBで連番を管理するテーブルのパフォーマンス測定をしていたのですが、その際に少し変わったデッドロック問題に遭遇しましたので、そのあたりをネタとして書いてみたいと思います。

まずは、今回使用したデータベースのスキーマは下記のようなものです。

CREATE TABLE num (
    id bigint unsigned NOT NULL default '0'
) Engine=InnoDB;

AUTO_INCREMENTは使用していません。
そこに1レコードだけ登録します。

INSERT INTO num (id) values (1);

そして実際連番を取得する際には、

UPDATE num SET id = LAST_INSERT_ID(id+1);

[さらに読む]
MySQL + DRBDってヤバい気がするんだけどどうなんざんしょ?

MySQL ABのリファレンスマニュアルに、

なんてセクションができてたのに今さっき気がついた。(結構前からあった?)

よく読んでない(すんまそん)んすけど、万が一、mysqldが生きている状態でDRBDのfail overが起こってしまうと、mysqldが開いている/書いてる途中の状態でブロックデバイスが切り替わる訳で、これはちっと危険(データの破損や巻き戻りの可能性)な気がするんですけどどうなんざんしょね?

[さらに読む]
レプリケーションの遅延秒数を知る方法

MySQL 4.1.1以降なら、SHOW SLAVE STATUSでSeconds_Behind_Masterというのが見られるそうで、これが遅延秒数の指標として使えるっぽい。

Seconds_Behind_Master

This field is an indication of how “late” the slave is:

  • When the slave SQL thread is actively running (processing updates), this field is the number of seconds that have elapsed since the timestamp of the most recent event on the master executed by that thread.
  • When the SQL thread has caught up to the slave I/O thread and goes idle waiting for more events from the I/O thread, this field is zero.


In essence, this field measures the time …

[さらに読む]
GET_LOCK

という関数があるのを知った。

すでにそこに動いているmysqldがあるのなら、これ使って複数サーバ/クライアント向けのロックサーバがすぐにできそう。

WEB+DB PRESS Vol.37 に寄稿しました(特集と連載)

WEB+DB PRESS Vol.37

見本誌届きました。今回の連載『MySQL5 …

[さらに読む]
MySQL 5 の場合はmytopよりinnotopのほうがいいかも

MySQLのモニタするのに便利なmytopなんですが、MySQL 5に対して使うと、クエリの割合表示が全部ゼロになってしまったります。

これは、MySQL 5.0.2でSHOW STATUS文が変更され、GLOBALかSESSIONというオプションを指定できるようになったことに起因します。このオプションを省略した際はSESSIONを指定したときと同じ動作となり、SHOW STATUS文で得られるのは自分自身の接続についての情報のみとなります。

mytopはオプションなしのSHOW STATUS文を使っているので、MySQL

[さらに読む]
2030 件中 2011 - 2020 件を表示
« 前の 10 件 | 次の 10 件 »