CentOS 5.2でMySQL 5.1を最新レポジトリのソースから入れてみる

エキスパートのためのMySQL[運用+管理]トラブルシューティングガイド
 こちらの書籍を参考にP489を参考にまずはレポジトリ管理ソフト bazaarを入れる。併せてこちらも読んでおく開発ソースツリーからのインストール

mysql 5.1の最新レポジトリをダウンロード

cd /usr/local/src
mkdir mysql-server
bzr init-repo --trees mysql-server
cd mysql-server
bzr branch lp:mysql-server/5.1 mysql-5.1
You have not informed bzr of your Launchpad ID, and you must do this to
write to Launchpad or access private data.  See "bzr help launchpad-login".
bzr: ERROR: Connection error: while sending GET /~mysql/mysql-server/mysql-5.1/.bzr/re                                            pository/packs/6a23f267dbbed2ae160523e3c8bd309a.pack: (4, '\xa5\xb7\xa5\xb9\xa5\xc6\xa5\xe0\xa5\xb3\xa1\xbc\xa5\xeb\xb3\xe4\xa4\xea\xb9\xfe\xa4\xdf')
  • エラーの内容を見てみると
bzr help launchpad-login
Purpose: Show or set the Launchpad user ID.
Usage:   bzr launchpad-login [NAME]

Options:
  --usage        Show usage message and options.
  --no-check     Don't check that the user name is valid.
  -v, --verbose  Display more information.
  -q, --quiet    Only display errors and warnings.
  -h, --help     Show help message.

Description:
  When communicating with Launchpad, some commands need to know your
  Launchpad user ID.  This command can be used to set or show the
  user ID that Bazaar will use for such communication.

Examples:
  Show the Launchpad ID of the current user:

      bzr launchpad-login

  Set the Launchpad ID of the current user to 'bob':

      bzr launchpad-login bob

Aliases:  lp-login
From:     plugin "launchpad"
  • ネットワークエラーで取得できない。
  • launchpadのユーザ登録が必要になった?(8/15追記)

 MySQL運用+管理トラブルシューティングガイドに以下の操作について載っていなかったのが原因。ちゃんとMySQLのオンラインマニュアルも読んでおきましょう。

mkdir mysql-server
bzr init-repo --trees mysql-server
cd mysql-server