1985 件中 1451 - 1460 件を表示
« 前の 10 件 | 次の 10 件 »
Displaying posts with tag: MySQL (reset)
MySQL 5.6.4でマイクロ秒までサポート(TIME, DATETIME, TIMESTAMP)

オトコの熱いブログエントリのとおり大幅な進歩を遂げつつあるMySQL 5.6
最新のMySQL 5.6.4では首記のとおり、時刻を格納するカラムにマイクロ秒まで格納できるようになりました。
fsp(fractional seconds part)として0〜6を指定できます。Release notesにある以下の例だと、それぞれ小数点以下三桁、六桁が指定できます。

CREATE TABLE t1 (t TIME(3), dt DATETIME(6));

fspは無指定の場合0となります。これは既存のものとの互換性のためです。

現在の時刻を示す関数にもfspが指定できるようになり、それを格納できます。こんな感じになります。

mysql> insert into t1 …

[さらに読む]
どのMySQL Connector/Jを使いましょうか?

Connector/Netはバージョンが多くあるので以前に以下のような記事を書きました。

どのMySQL Connector/Netを使いましょうか?

これに対してMySQLでのJDBCドライバ実装のConnector/Jの現在メンテナンスされているバージョンは 次の一覧のように少ないため、まよわずConnector/J 5.1.xを使ってください。

DD MON YEAR 5.0.x   5.1.x
------------------------------------------
22 DEC 2005 5.0.0   -----
11 JUL 2006 5.0.1   -----
11 JUL 2006 5.0.2   -----
26 JUL 2006 5.0.3Be -----
20 OCT 2006 5.0.4   -----
02 MAR 2007 5.0.5   -----
11 APR 2007 -----   5.1.0 Al
15 MAY 2007 5.0.6   
22 JUN 2007 -----   5.1.1 Al
29 JUN 2007 -----   5.1.2 Be
20 JUL 2007 5.0.7
10 SEP 2007 -----   5.1.3 RC
09 OCT 2007 5.0.8   5.1.5 GA
07 MAR 2008 -----   5.1.6 GA
21 OCT 2008 -----   5.1.7 GA
16 JUL 2009 -----   5.1.8 GA
21 SEP 2009 …
[さらに読む]
How Twitter Stores 250 Million Tweets a Day Using MySQL

Twitter's new tweet store:

When you tweet it's stored in an internal system called T-bird, which is built on top of Gizzard. Secondary indexes are stored in a separate system called T-flock, which is also Gizzard based.

Unique IDs for each tweet are generated by Snowflake, which can be more evenly sharded across a cluster. FlockDB is used for ID to ID mapping, storing the relationships between IDs (uses Gizzard).

Gizzard is Twitter's distributed data storage framework built on top of MySQL (InnoDB).

InnoDB was chosen because it doesn't corrupt data. Gizzard us just a datastore. Data is fed in and you get it back out again.

To get higher performance on individual nodes a lot of features like binary logs and replication are turned off. Gizzard handles sharding, replicating N copes of the data, and job scheduling.

Gizzard is used as a building block for other storage systems at Twitter. …

[さらに読む]
innodb file format :antelope and barracuda

The InnoDB Plugin introduces the idea of a named file format and a configuration parameter to enable the use of features that require use of that format. The new file format is the “Barracuda” format, and the file format supported by prior releases of InnoDB is called file format “Antelope”. Compressed tables and the new row format that stores long columns “off-page” require the use of the “Barracuda” file format or newer. Future versions of InnoDB may introduce a series of file formats, identified with the names of animals, in ascending alphabetical order.

Beginning with this release, every InnoDB per-table tablespace file is labeled with a file format identifier. This does not apply to the system tablespace (the ibdata files) but only the files of separate tablespaces (the *.ibd files where tables and indexes are stored in their own tablespace). As noted below, however, the system tablespace is …

[さらに読む]
MySQLと英語のリスニングを同時に勉強する方法。

英語を勉強したいが技術も勉強したい。それは技術者にとって悩ましい悩みではいだろうか。そんな悩める技術者諸君にとって喜ばしい知らせがある。MySQLの勉強も英語のリスニングも同時にできる、そうOurSQL Database Community Podcastならね。

OurSQL: The MySQL Database Community Podcast

だいたい1回30分前後でMySQLについて様々なトピックについてのディスカッションが行われている。既にエピソード69までたまっているのでまさに聞き放題だ!Webページ上で直接聴くこともできるし、お気に入りのミュージックプレイヤーで聴くなら下記のPodcast FeedのURLを登録すれば良い。筆者はAmarokで聴いている。

http://technocation.org/audio/feed

Enjoy!!

antlr parser examples

http://www.bearcave.com/software/antlr/antlr_examples.html
http://www.antlr2.org/doc/sor.html
http://www.antlr.org/

MySQLにおけるレプリケーション遅延の傾向と対策

レプリケーションはMySQLで最もよく使われる機能のひとつだ。レプリケーションは基本的に非同期でデータの複製を行う仕組みになっているのだが、非同期故にどうしても逃れられない問題がある。そのひとつが今回のテーマ、遅延である。というと、MySQLのレプリケーションはすぐに遅延が生じてしまうように感じてしまうかも知れないが、そのようなことはない。ほとんどの場合は即座にスレーブの更新が行われる。

なぜ遅延は発生するのか、どのように遅延が起きていることを調べるのか、どのように回避するのかということを本エントリでは解説したい。うまく遅延と付き合って、MySQLのレプリケーションをより快適に運用してもらえればと思う。

[さらに読む]
[mysql]mysql-buildでいろんなバージョンのMySQLをインストールしたい!

これはMySQL Casual Advent Calendar 2011 - MySQL Casualの8日目の記事です!

UDFでFizzBuzz

id:sugyanさんがストアドプロシージャでFizzBuzzをやっていたのでMySQLのUDF(user-defined function)でもやってみました。

kamipo/mysql_fizzbuzz ? GitHub

git clone git://github.com/kamipo/mysql_fizzbuzz.git
cd mysql_fizzbuzz
g++ -shared -fPIC -Wall -g mysql_fizzbuzz.cc -o mysql_fizzbuzz.so
cp mysql_fizzbuzz.so …
[さらに読む]
mysql-buildでいろんなバージョンのMySQLをインストールしたい!

これはMySQL Casual Advent Calendar 2011 - MySQL Casualの8日目の記事です!

UDFでFizzBuzz

id:sugyanさんがストアドプロシージャでFizzBuzzをやっていたのでMySQLのUDF(user-defined function)でもやってみました。
kamipo/mysql_fizzbuzz · GitHub

[さらに読む]
Recovering an InnoDB table from only an .ibd file.

http://www.chriscalender.com/?p=28

1985 件中 1451 - 1460 件を表示
« 前の 10 件 | 次の 10 件 »