some people ask a question:How to save procedure and function
code by MYSQL?
check mysql5.1 source code,we get the answer.
1)MYSQL use a table to save this text code,the table name is
MYSQL.PROC and table type is MYISAM.
2)The source code is sql/sp.cc and the method is "int
sp_create_routine(THD *thd, int type, sp_head *sp)".
3)we can get the comment as following:
/**
Write stored-routine object into mysql.proc.
This operation stores attributes of the stored procedure/function
into
the mysql.proc.
@param thd Thread context.
@param type Stored routine type
(TYPE_ENUM_PROCEDURE or TYPE_ENUM_FUNCTION).
@param sp Stored routine object to store.
@note Opens and closes the thread tables. Therefore assumes
that there are no locked tables in this thread at the time
of
invocation.
Unlike some other DDL statements, *does* close …
もう目前に迫っているが、日本オラクルではMySQLのイベントを開催する予定である。朝10時から午後4時半までというみっちりなセミナーを、26日大阪と28日東京で開催する。MySQLにどっぷり浸かりたいという方におすすめである。内容は次のようなものを予定している。
レプリケーションとスケーラビリティの話 運用管理のノウハウ MySQL Cluster MySQL徹底解説
セミナー情報大阪開催 日程: 2011年10月26日 (水) 10:00~16:30 (受付開始: 09:30~) 会場: 日本オラクル西日本支社セミナールーム 定員:40名
東京開催 日程: 2011年10月28日 (金) 10:00~16:30 (受付開始: 09:30~) 会場: 日本 オラクル株式会社本社13Fセミナールーム 定員:80名
大阪の方はまだ席に余裕があるのでぜひ来ていただきたい
Spiderストレージエンジンのバージョン 2.27(beta)とVartical Partitioningのバージョン
0.16(beta)をリリースしました。
Spiderストレージエンジンは、database sharding用のストレージエンジンです。
http://spiderformysql.com/
Vertical Partitioningストレージエンジンは、テーブルのVertical
Partitioning用のストレージエンジンです。
http://launchpad.net/vpformysql
バイナリのダウンロードにはこちらをご利用ください。
http://spiderformysql.com/download_spider.html
今回の主な変更は以下です。
Linux64bit用にQ4Mをバンドルしました。
…
(posts copied from
http://www.mysqlperformanceblog.com/2011/10/10/mysql-versions-shootout/)
use Cisco UCS C250 and ran simple sysbench oltp
read-write all data fits into memory workload.
Versions in question:
- MySQL 4.1
- MySQL 5.0
- MySQL 5.1 (with built-in InnoDB)
- MySQL 5.1 with InnoDB-plugin
- MySQL 5.5
- MySQL 5.6
All versions are vanilla MySQL, not Percona Server.
There is nothing unexpected, staring with InnoDB-plugin, MySQL scale much better on multi-cores, there is gain up to 1.7x in throughput.
What is interesting there, let’s take look on single thread …
[さらに読む]Controls whether IDEMPOTENT or STRICT mode is used in replication conflict resolution and error checking. IDEMPOTENT mode causes suppression of duplicate-key and no-key-found errors. Beginning with MySQL 5.1.23-ndb-6.2.14 and MySQL 5.1.24, this mode should be employed in multi-master replication, circular replication, and some other special replication scenarios. STRICT mode is the default, and is suitable for most other cases.
最新の開発版であるMySQL 5.6.3-m6がリリースされた。清く正しいMySQLerの皆さんはすでにダウンロードして、評価を楽しんでくれていることだろう。はっきり言ってこのバージョンは凄い。明らかに前バージョンのMySQL 5.6.2から搭載されている新機能の数は膨大である。それはMySQL 5.6.3のリリースノートを見てもらえば一目瞭然だ。凄いボリュームだからだ。
今回はそんな膨大な新機能を搭載したMySQL 5.6.3について、要点を解説しようと思う。MySQL 5.6.3は開発版なので今直ぐ本番環境へ投入したい!というはやる気持ちはグッと我慢して頂きたいが、ぜひ評価はしていただきたいと思う。
…
[さらに読む]
With MySQL V5.0 or before, use the my.cnf option
innodb_locks_unsafe_for_binlog to minimize next-key locking.This
is safe only if you do not use binlogging for replication,OR, if
your application is not prone to 'phantom row' problems
Beginning with MySQL-5.1.xx, if you use row-based replication,
you can safely reduce next-key locking by setting
innodb_locks_unsafe_for_binlog use TRANSACTION ISOLATION LEVEL
READ COMMITTED.
the detail refer URL as following:
http://dev.mysql.com/doc/refman/5.1/en/innodb-parameters.html#sysvar_innodb_locks_unsafe_for_binlog
From Wikipedia, the free encyclopedia.
In database systems, isolation is a property that defines how/when the changes made by one operation become visible to other concurrent operations. Isolation is one of the ACID (Atomicity, Consistency, Isolation, Durability) properties.
Isolation levels
Of the four ACID properties in a DBMS (Database Management System), the isolation property is the one most often relaxed. When attempting to maintain the highest level of isolation, a DBMS usually acquires locks on data or implements …
[さらに読む]