Tag Archives: database

Percona 提供的「Galera Cluster 前置作業」文件…

文章的標題「Follow these basics when migrating to Percona XtraDB Cluster for MySQL」寫的是 Percona XtraDB Cluster,不過基本上就是在講 Galera Cluster。 除了已知的 MyISAM 問題與 Primary Key 前提外,還有提到在從 MySQL server 轉移到 Galera Cluster 過程要怎麼做。 在這種情況下,會另外準備 server 跑 Galera Cluster (採先建後拆的策略)。新的 cluster 裡其中有一台會以 slave 身份向原來的 MySQL server … Continue reading

Posted in Computer, Database, Murmuring, MySQL, Software | Tagged , , , , , , | Leave a comment

判斷資料庫是否可以轉移到 Galera Cluster 上的方式…

Open Query 的人給了一個很簡單的方式,只要下一個 SQL query 去查就可以知道有哪些 table 不符合 Galera Cluster 的條件:「Galera pre-deployment check」。 就目前看到的說明以及 SQL query 算是 pre-check:回報 okay 不代表上了就沒問題,但如果有回報有問題,表示上了 Galera Cluster 後會遇到問題。 這個檢查適用於 MySQL 以及目前常見的 MySQL fork (像是 MariaDB、Percona Server)。

Posted in Computer, Database, MariaDB, Murmuring, MySQL, Software | Tagged , , , , , , , | Leave a comment

SkySQL 與 Monty Program Ab 合併…

TechCrunch 上看到這兩家合併的消息:「SkySQL Merges With MariaDB Creator Monty Program To Solidify Its Open Source Database Position」。 原 SkySQL 頭接任 CEO,原 Monty Program Ab 頭接任 CTO。對 SkySQL 沒什麼好印象,這合併是要幹什麼…

Posted in Computer, Database, MariaDB, Murmuring, MySQL, Software | Tagged , , , , , | Leave a comment

MySQL 5.7…

Oracle 的「MySQL :: MySQL 5.7 Reference Manual :: 1.4 What Is New in MySQL 5.7」列出 MySQL 5.7 預定會有的功能。由於還在發展階段,這頁還會繼續變動。 針對 ALTER TABLE 有不少改善,以下的條件下 ALTER TABLE 將不會產生 temporily table (不會卡住): table 改名。 column 改名。 column 改 default value。 enum 或 set 在不修改原來值的情況下增加值。 … Continue reading

Posted in Computer, Database, Murmuring, MySQL, Software | Tagged , , , , , , , , , , , , | Leave a comment

Percona Server 5.5.30-30.2 (based on MySQL 5.5.30) 的改善

Percona 在前幾天推出基於 MySQL 5.5.30 的 Percona Server 5.5.30-30.2:「Percona Server for MySQL 5.5.30-30.2 now available」。 5.5.30-30.2 這個版本引入了 jemalloc: Percona Server for MySQL will now be shipped with the libjemalloc library. Benchmark showing the impact of memory allocators on MySQL performance can … Continue reading

Posted in Computer, Database, Murmuring, MySQL, Network, Software | Tagged , , , , , , , , , | 3 Comments

PostgreSQL 安全性更新…

PostgreSQL 在官網最明顯的位置上放出更新公告: 說明在「PostgreSQL 9.2.4, 9.1.9, 9.0.13 and 8.4.17 released」這頁,更新的版本分別是 9.2.4 (9.2)、9.1.9 (9.1)、9.0.13 (9.0) 與 8.4.17 (8.4)。除了公告外,在 Security Information 的資料也可以交叉看。 這次最嚴重的問題是 CVE-2013-1899,等級分類在最嚴重的 A 級,官方對這個問題的描述是: A connection request containing a database name that begins with “-” may be crafted to damage or … Continue reading

Posted in Computer, Database, Murmuring, PostgreSQL, Security, Software | Tagged , , , , , | Leave a comment

PostgreSQL 對 NoSQL 的看法…

二月的時候 PostgreSQL 的人在 FOSDEM PGDay 2013 上發表了對 NoSQL 的看法 (PDF 投影片):「PostgreSQL as a Schemaless Database.」。 先說明,這投影片相當酸 XD 不過這份投影片說明了大多數人的問題: 其實大多用 NoSQL 的人不知道在用什麼… 就算你知道你在用什麼,你用得很爽的功能其實在「傳統的」「SQL 架構」下效能通常都會更好… 另外我建議可以看看維基百科上的 Entity-attribute-value model,大多數你想用 NoSQL 的情況在這個 case 下就可以解決,而且效能相當好。

Posted in Computer, Database, Murmuring, PostgreSQL, Software | Tagged , , , , , , , , , , , , | 1 Comment

PostgreSQL 對 security update 的極端作法…

在 Hacker News 文摘上看到,PostgreSQL 決定對這次的 security update 採取最極端的作法:「Extra security measures for next week’s releases」。 包括全面管制 Git repository 公開資訊:官方的 Git repository 將會在正式釋出修正前限制只有 committer 可以存取,並且暫停 GitHub 以及其他 git mirror 權限。 另外 mailing list 也受到管制,包括了 src commit log 以及 document commit log。 信件開頭就提到這次安全性漏洞足以說服 … Continue reading

Posted in Computer, Database, Murmuring, PostgreSQL, Software | Tagged , , , , , , , , , , , , | Leave a comment

用 Percona Xtrabackup 產生 Slave Server 的方式…

快四年前寫過「XtraBackup:線上備份 InnoDB 的好東西」這篇,但裡面的方法已經不能用了,所以再寫一篇給 Google,之後查資料比較方便… 現在可以參考 Percona 的官方文件「How to setup a slave for replication in 6 simple steps with Xtrabackup」。 先跑一次 full backup: innobackupex –user=yourDBuser –password=MaGiCiGaM –slave-info /path/to/backupdir 再跑 apply log:(其中的變數自己換掉) innobackupex –apply-log –use-memory=2G /path/to/backupdir/$TIMESTAMP/ 然後整個目錄丟到 slave server 上,用 CHANGE MASTER … Continue reading

Posted in Computer, Database, Murmuring, MySQL, Network, Software | Tagged , , , , , , | Leave a comment

Percona 的 MySQL 5.6…

剛剛看到 Percona 放出第三個基於 MySQL 5.6 的版本了,仍然是 alpha 等級 (還在測試階段):「Announcing Percona Server for MySQL 5.6.10-60.2」。 這也是 MySQL 5.6 進入 GA 後 Percona 推出的第一個版本,而且剛剛看 Percona 的文件網站也發現建出來了:「Percona Server 5.6 – Documentation」。 Percona XtraDB Cluster 目前還是基於 5.5 的版本,不知道 Codership (Galera Cluster 的開發公司) 有沒有打算換新…

Posted in Computer, Database, Murmuring, MySQL, Software | Tagged , , , , , , , , , | Leave a comment