このページを共有


今月のカレンダー



1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30

カテゴリ一覧

ただの日記(945)
原付生活(3)
子育て日記(11)
PC関連(11)
もろもろ日記(914)

競馬+POG(1717)
当たらない予想と反省会(708)
POGネタ(58)
競馬について考える(19)
競馬もろもろ(224)
ダービーウィーク!(14)
2011年競馬場訪問記(27)
2012年競馬場訪問記(53)
2013年競馬場訪問記(62)
2014年競馬場訪問記(40)
2015年競馬場訪問記(43)
2016年競馬場訪問記(25)
2017年競馬場訪問記(36)
2018年競馬場訪問記(37)
2019年競馬場訪問記(34)
2020年競馬場訪問記(24)
2021年競馬場訪問記(37)
2022年競馬場訪問記(52)
2023年競馬場訪問記(70)
2024年競馬場訪問記(71)
2025年競馬場訪問記(63)
2026年競馬場訪問記(12)
地方競馬馬主(5)
ひとくち馬主(3)

ホームページ製作(363)
PHPの備忘録(14)
CSSの備忘録(5)
JavaScriptの備忘録(2)
ホームページもろもろ(290)
Flashの備忘録(12)
管理人の備忘録(21)
スマフォ用サイト作成(19)

自宅サーバ(372)
FreeBSD(17)
Apache(4)
PHP(5)
MySQL(18)
サーバもろもろ(154)
障害連絡(133)
リニューアルプロジェクト 2011-2012(41)

お仕事(48)
お仕事(48)

旅の記録・水曜どうでしょう関連(43)
水曜どうでしょう(11)
2009年四国お遍路(6)
2009年アンコールワット(5)
2010年ベトナム(3)
2010年いっそ九州(5)
2010年北海道179市町村(5)
2011年春の一人旅(2)
2011年四国お遍路(6)


先月までのネタ

2026年
2026年3月(5)
2026年2月(4)
2026年1月(12)

2025年
2025年12月(7)
2025年11月(12)
2025年10月(3)
2025年9月(6)
2025年8月(4)
2025年7月(7)
2025年6月(7)
2025年5月(3)
2025年4月(3)
2025年3月(3)
2025年2月(11)
2025年1月(7)

2024年
2024年12月(11)
2024年11月(7)
2024年10月(10)
2024年9月(6)
2024年8月(6)
2024年7月(7)
2024年6月(7)
2024年5月(5)
2024年4月(5)
2024年3月(7)
2024年2月(8)
2024年1月(13)

2023年
2023年12月(11)
2023年11月(8)
2023年10月(10)
2023年9月(7)
2023年8月(9)
2023年7月(10)
2023年6月(6)
2023年5月(10)
2023年4月(5)
2023年3月(4)
2023年2月(6)
2023年1月(6)

2022年
2022年12月(9)
2022年11月(8)
2022年10月(5)
2022年9月(5)
2022年8月(2)
2022年7月(6)
2022年6月(9)
2022年5月(3)
2022年4月(3)
2022年3月(4)
2022年2月(7)
2022年1月(5)

2021年
2021年12月(8)
2021年11月(9)
2021年10月(4)
2021年9月(3)
2021年8月(2)
2021年7月(6)
2021年6月(12)
2021年5月(2)
2021年4月(8)
2021年3月(2)
2021年2月(7)
2021年1月(2)

2020年
2020年12月(8)
2020年11月(3)
2020年10月(4)
2020年9月(1)
2020年8月(2)
2020年7月(7)
2020年6月(6)
2020年5月(9)
2020年4月(11)
2020年3月(8)
2020年2月(5)
2020年1月(9)

2019年
2019年12月(4)
2019年11月(5)
2019年10月(7)
2019年9月(2)
2019年8月(2)
2019年7月(8)
2019年6月(2)
2019年5月(3)
2019年4月(2)
2019年3月(4)
2019年2月(3)
2019年1月(1)

2018年
2018年12月(8)
2018年11月(5)
2018年10月(10)
2018年9月(6)
2018年8月(1)
2018年7月(7)
2018年6月(5)
2018年5月(7)
2018年4月(19)
2018年3月(3)
2018年2月(3)
2018年1月(11)

2017年
2017年12月(14)
2017年11月(11)
2017年10月(18)
2017年9月(18)
2017年8月(21)
2017年7月(29)
2017年6月(26)
2017年5月(23)
2017年4月(18)
2017年3月(11)
2017年2月(11)
2017年1月(16)

2016年
2016年12月(25)
2016年11月(24)
2016年10月(30)
2016年9月(15)
2016年8月(16)
2016年7月(15)
2016年6月(18)
2016年5月(30)
2016年4月(28)
2016年3月(29)
2016年2月(26)
2016年1月(32)

2015年
2015年12月(30)
2015年11月(29)
2015年10月(30)
2015年9月(27)
2015年8月(28)
2015年7月(28)
2015年6月(28)
2015年5月(29)
2015年4月(30)
2015年3月(28)
2015年2月(26)
2015年1月(29)

2014年
2014年12月(31)
2014年11月(28)
2014年10月(31)
2014年9月(29)
2014年8月(29)
2014年7月(31)
2014年6月(31)
2014年5月(30)
2014年4月(30)
2014年3月(28)
2014年2月(27)
2014年1月(31)

2013年
2013年12月(29)
2013年11月(27)
2013年10月(29)
2013年9月(27)
2013年8月(28)
2013年7月(28)
2013年6月(29)
2013年5月(29)
2013年4月(30)
2013年3月(26)
2013年2月(24)
2013年1月(29)

2012年
2012年12月(28)
2012年11月(27)
2012年10月(28)
2012年9月(30)
2012年8月(31)
2012年7月(33)
2012年6月(32)
2012年5月(33)
2012年4月(35)
2012年3月(30)
2012年2月(27)
2012年1月(31)

2011年
2011年12月(25)
2011年11月(25)
2011年10月(28)
2011年9月(28)
2011年8月(28)
2011年7月(28)
2011年6月(27)
2011年5月(26)
2011年4月(16)
2011年3月(9)
2011年2月(11)
2011年1月(9)

2010年
2010年12月(12)
2010年11月(11)
2010年10月(8)
2010年9月(13)
2010年8月(10)
2010年7月(20)
2010年6月(6)
2010年5月(9)
2010年4月(2)
2010年3月(3)
2010年2月(5)
2010年1月(8)

2009年
2009年12月(9)
2009年11月(2)
2009年10月(4)
2009年9月(3)
2009年8月(1)
2009年7月(9)
2009年6月(3)
2009年5月(14)
2009年4月(10)
2009年3月(11)
2009年2月(9)
2009年1月(10)

2008年
2008年12月(1)
2008年11月(1)
2008年10月(1)
2008年9月(5)
2008年8月(1)
2008年7月(1)
2008年6月(2)
2008年5月(1)
2008年4月(1)
2008年3月(2)
2008年2月(7)
2008年1月(7)

2007年
2007年12月(11)
2007年11月(7)
2007年10月(8)
2007年9月(12)
2007年8月(11)
2007年7月(5)
2007年6月(16)
2007年5月(8)
2007年4月(2)
2007年3月(14)
2007年2月(2)
2007年1月(8)

2006年
2006年12月(4)
2006年11月(6)
2006年10月(7)
2006年9月(10)
2006年8月(9)
2006年7月(20)
2006年6月(13)
2006年5月(3)

2005年
2005年9月(13)
2005年8月(13)
2005年7月(18)
2005年6月(24)
2005年5月(26)
2005年4月(26)
2005年3月(27)
2005年2月(22)
2005年1月(26)

2004年
2004年12月(29)
2004年11月(29)
2004年10月(26)
2004年9月(23)
2004年8月(12)


最近よく読まれてるネタ



地方競馬馬主 は全国の競馬場で馬主席 を使える?使えない?のまとめ。
(2023年12月3日のネタ:50回)

今日は会社帰りに船橋競馬場に寄ってきました。
(2026年3月30日のネタ:49回)

Excel VBAで「SPAT4自動投票システム」を作ってみました。
(2020年7月19日のネタ:43回)

今日は金沢競馬場 へ行ってきました。
(2023年9月16日のネタ:27回)

【サイト改修のお知らせ】出馬表ページの構成を見直しました
(2026年3月31日のネタ:26回)

今日はジャパンダートダービーの観戦に、大井競馬場へ行ってきました。
(2013年7月10日のネタ:22回)

本日は函館へやってきました(どちらかというと明日がメイン。)
(2014年7月5日のネタ:19回)

今日は突発競馬飲み会で…。
(2014年7月23日のネタ:17回)

明日は後半3レースくらいは函館で。
(2014年7月4日のネタ:17回)

管理人の当たらないG1予想!皐月賞編!
(2012年4月14日のネタ:16回)



最近のコメント



今日は改修工事真っ只中の #京都競馬場 (パークウインズ京都競馬場)へ行ってきました。(チョネ)

本日は笠松競馬場へ行ってきました。(あいべ)

管理人の今年の目標が一つ増えました…。(あああ)

まあそんなに書くことはありませんが…。(momo)

【管理人からご挨拶】 『The Sunday Breeze』は5月25日に開設19周年を迎えます。(アオヤギ)

4月からスタートする「Sunday Breeze POG!」の一部ルール追加について。(アオヤギ)

昨日「Sunday Breeze賞」の観戦に帯広競馬場へ行ってきました。(白イチゴ)

本日5月25日、「The Sunday Breeze」は18回目の誕生日を迎えました。(アオヤギ)

【「G1予想大会」プレリリース終了】皆様のご協力、本当にありがとうございました。(アオヤギ)

【再度お知らせとお願い】今週からの「G1予想大会」、新機能プレリリースを公開中です。(白イチゴ)



ネタの検索



管理人の競馬観戦記録


(2026年)

2011年以降の競馬観戦インデックス

JRA中山競馬場
1月5日

JRA小倉競馬場
1月25日

水沢競馬場
3月15日

浦和競馬場
3月16日

船橋競馬場
2月13日
3月12日 (ネクストスター東日本)
3月30日

大井競馬場
1月14日 ((その2))
1月14日 ((その1))

姫路競馬場
1月27日

高知競馬場
1月26日

佐賀競馬場
1月24日


管理人の競馬家計簿


(最近14日分)

2026年3月24日高知
10勝  回収率:67.6%

2026年3月25日大井
10勝  回収率:0.0%

2026年3月25日高知
10勝  回収率:0.0%

2026年3月28日中山
83勝  回収率:98.8%

2026年3月28日中京
102勝  回収率:41.3%

2026年3月28日阪神
73勝  回収率:90.0%

2026年3月29日中山
73勝  回収率:86.9%

2026年3月29日中京
21勝  回収率:8.7%

2026年3月29日阪神
81勝  回収率:12.7%

2026年3月30日船橋
21勝  回収率:100.0%

2026年3月31日船橋
10勝  回収率:0.0%

2026年4月4日中山
61勝  回収率:15.0%

2026年4月4日阪神
43勝  回収率:168.5%

2026年合計
386134
勝率:34.7%  回収率:63.4%
(万馬券:2本的中)

2025年合計
1117347
勝率:31.1% 回収率:62.3%
(万馬券:3本的中)

2024年合計
1394381
勝率:27.3% 回収率:70.5%
(万馬券:12本的中)

2023年合計
1772537
勝率:30.3% 回収率:71.2%
(万馬券:11本的中)


管理人のつぶやき


(皆様のフォローをお願いします。)

「自宅サーバ」の「MySQL」ネタは、全部で18件あります。

MySQL4.1.20のインストール&初期設定。

7月17日の記事のとおり、MySQLのインストールに失敗してます。
というか、古いバージョンをインストールしちゃいました。
ので、再度インストールしなおしです。

当然のことながら、不要なMySQL4.0.27は停止しておきます。

# fetch ftp://ftp.iij.ad.jp/pub/db/mysql/Downloads/MySQL-4.1/mysql-4.1.20.tar.gz
# tar zxvf mysql-4.1.20.tar.gz
# cd mysql-4.1.20
# ./configure
? --with-mysql-user=mysql
? --with-charset=ujis
? --with-extra-charsets=all
? --without-innodb


checking build system type... i386-unknown-freebsd6.1
checking host system type... i386-unknown-freebsd6.1



(中略)



MySQL has a Web site at http://www.mysql.com/ which carries details on the
latest release, upcoming features, and other information to make your
work or play with MySQL more productive. There you can also find
information about mailing lists for MySQL discussion.

Remember to check the platform specific part of the reference manual for
hints about installing MySQL on your platform. Also have a look at the
files in the Docs directory.

Thank you for choosing MySQL!

# make
cd libmysql; make link_sources



(中略)



/bin/mv ndb-config-2-node.ini-t ndb-config-2-node.ini

# make install
make install-recursive
Making install in .
Making install in include



(中略)



test -z "/usr/local/share/mysql" || /bin/sh ../mkinstalldirs "/usr/local/share/mysql"
/usr/bin/install -c 'mysql.server' '/usr/local/share/mysql/mysql.server'

一応ここでreboot。

起動したら
# mysql_install_db

Installing all prepared tables
Fill help tables

To start mysqld at boot time you have to copy support-files/mysql.server
to the right place for your system

PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !
To do so, start the server, then issue the following commands:
/usr/local/bin/mysqladmin -u root password 'new-password'
/usr/local/bin/mysqladmin -u root -h sundaybreeze.jp password 'new-password'
See the manual for more instructions.

NOTE: If you are upgrading from a MySQL <= 3.22.10 you should run
the /usr/local/bin/mysql_fix_privilege_tables. Otherwise you will not be
able to use the new GRANT command!

You can start the MySQL daemon with:
cd /usr/local ; /usr/local/bin/mysqld_safe &

You can test the MySQL daemon with the benchmarks in the 'sql-bench' directory:
cd sql-bench ; perl run-all-tests

Please report any problems with the /usr/local/bin/mysqlbug script!

The latest information about MySQL is available on the web at
http://www.mysql.com
Support MySQL by buying support/licenses at http://shop.mysql.com

# cp -p support-files/mysql.server /usr/local/etc/rc.d/mysql.server.sh
# chmod 555 /usr/local/etc/rc.d/mysql.server.sh
# chown -R mysql:mysql /usr/local/var


で、MySQLの起動。
# /usr/local/etc/rc.d/mysql.server.sh start

一時サーバのデータを一気にimport。
# mysql -u root < ダンプファイル
# /usr/local/etc/rc.d/mysql.server.sh stop
# /usr/local/etc/rc.d/mysql.server.sh start


全データのimportにかかった時間は、2分12秒。
まあ許される範囲でしょう。
なんで5.0は時間がかかったんだ?

で、やっぱりエラーログには
[Warning] mysql.user table is not updated to new password format; Disabling new password usage until mysql_fix_privilege_tables is run
とでてました。
本ちゃんサーバなので、このままにしておくのもと思い、
# mysql_fix_privilege_tables
This script updates all the mysql privilege tables to be usable by
MySQL 4.0 and above.

This is needed if you want to use the new GRANT functions,
CREATE AGGREGATE FUNCTION, or the more secure passwords in 4.1

done

とやってみました。
その後には再度MySQLサーバの再起動。
まあこんな感じでしょうか。

で、MySQLのライブラリが絡んでいるPHPについても
再度コンパイルし、インストール。
手順は7月13日の記事のとおりです。


[コメント読む(0)]  人気ブログランキングへ 

MySQL 4.0.27 のインストール&初期設定。

ユーザ mysql:mysql が作成されていることが前提です。
(昨日作成済み)


# fetch http://downloads.mysql.com/archives/mysql-4.0/mysql-4.0.27.tar.gz
# tar zxvf mysql-4.0.27.tar.gz
# cd mysql-4.0.27
# ./configure
? --with-mysql-user=mysql
? --with-charset=ujis
? --with-extra-charsets=all
? --without-innodb

checking build system type... i386-unknown-freebsd6.1
checking host system type... i386-unknown-freebsd6.1
checking target system type... i386-unknown-freebsd6.1



(中略)



MySQL has a Web site at http://www.mysql.com/ which carries details on the
latest release, upcoming features, and other information to make your
work or play with MySQL more productive. There you can also find
information about mailing lists for MySQL discussion.

Remember to check the platform specific part of the reference manual for
hints about installing MySQL on your platform. Also have a look at the
files in the Docs directory.

Thank you for choosing MySQL!

# make

cd libmysql; make link_sources



(中略)



/bin/mv binary-configure-t binary-configure

# make install

Making install in .
Making install in include



(中略)



/usr/bin/install -c 'mysql.server' '/usr/local/share/mysql/mysql.server'

# rehash;mysql_install_db

Preparing db table
Preparing host table
Preparing user table
Preparing func table
Preparing tables_priv table
Preparing columns_priv table
Installing all prepared tables
060711 15:10:24 /usr/local/libexec/mysqld: Shutdown Complete


To start mysqld at boot time you have to copy support-files/mysql.server
to the right place for your system

PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !
To do so, start the server, then issue the following commands:
/usr/local/bin/mysqladmin -u root password 'new-password'
/usr/local/bin/mysqladmin -u root -h webserver.sundaybreeze.jp password 'new-password'
See the manual for more instructions.

You can start the MySQL daemon with:
cd /usr/local ; /usr/local/bin/mysqld_safe &

You can test the MySQL daemon with the benchmarks in the 'sql-bench' directory:
cd sql-bench ; perl run-all-tests

Please report any problems with the /usr/local/bin/mysqlbug script!

The latest information about MySQL is available on the web at
http://www.mysql.com
Support MySQL by buying support/licenses at http://shop.mysql.com

# cp -p support-files/mysql.server /usr/local/etc/rc.d/mysql.server.sh
# chmod 555 /usr/local/etc/rc.d/mysql.server.sh
# chown -R mysql:mysql /usr/local/var

/etc/my.cnfは旧サーバ使用のものをそのまま。


# /usr/local/etc/rc.d/mysql.server.sh start

で起動します。
ログインは、初回なら

# mysql -u root


パスワードの桁数の問題がありましたので
mysql.userとmysql.dbの両テーブルについては
手でメンテナンス。
従来のIDとパスワードをinsert。


# /usr/local/etc/rc.d/mysql.server.sh stop
# /usr/local/etc/rc.d/mysql.server.sh start

で落とし上げすれば、従来のIDとパスワードで
入れるようになります。


configオプションに
--with-low-memoryつけるの忘れた。。。

[コメント読む(0)]  人気ブログランキングへ 

使用するDBの再検討。

当初、Firebirdの使用を考えてました。
ですが、あまりにも修正対象が多いため、
今回の再構築では断念することにしました。

再構築後に徐々に移行できたら、と考えてます。

で、Firebirdを使わないとなると。
というか、修正せずに使うとなると、
MySQLしかないわけですが、
バージョン5.0では、以前書いたとおり
バックアップからの戻しに果てしなく時間がかかるため、
一応4系の4.0.27もしくは4.1.20のどちらかを使用する方向で
検討しています。

まあ再構築前が4.0系でしたので、
多分4.0.27でいくと思います。
4.1.20では、5系とあまり変わらないような気もするし。

[コメント読む(0)]  人気ブログランキングへ 

水曜日のDBメンテナンスが大幅遅延

mysql5.0、問題ばっかりだな。

毎週水曜日朝6時。
全部のDBのdump取得後にまたimportする作業をしてます。
フラグメンテーション解消のため?

で、今日は水曜日。
初の一時サーバでのメンテナンス。

今までは、dumpは1分くらい。
importはかかっても3分くらい。

今日の一時サーバは、
dumpは15秒
importは朝6時ちょうど45秒から始まって、
10時半の時点で終わってなかった

原因はこれから調査。わかったら追記します。

6.21追記
先ほど15時25分ころから再度DBを旧サーバへ切り替え、
一時サーバでimportを実施しているものの、
終わる気配なし。

サーバ性能は以下のとおり。
一時サーバ
CPU: Intel(R) Pentium(R) 4 CPU 2.40GHz (2390.30-MHz 686-class CPU)
Origin = "GenuineIntel" Id = 0xf27 Stepping = 7
real memory = 369033216 (351 MB)
avail memory = 351428608 (335 MB)

旧サーバ
CPU: Intel Pentium III (731.47-MHz 686-class CPU)
Origin = "GenuineIntel" Id = 0x683 Stepping = 3
real memory = 133955584 (130816K bytes)
avail memory = 127418368 (124432K bytes)

おそらく、mysql固有の問題で遅くなっているものと思われる。

要詳細調査。わかったら追記します。

[コメント読む(0)]  人気ブログランキングへ 

DBサーバを切り替えたら、認証がうまくいかなくなる。

なぜ?

旧サーバのmysqlバージョンは4.1.11。

Welcome to the MySQL monitor. Commands end with ; or g.
Your MySQL connection id is 1 to server version: 4.1.11-log

Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

mysql> select password('passtest');
+-------------------------------------------+
&#124; password('passtest') &#124;
+-------------------------------------------+
&#124; *AD41292400F8520F470EF8ED3698816A1E0FF23A &#124;
+-------------------------------------------+
1 row in set (0.00 sec)

パスワードはバイナリ41桁で*から始まる。

一時サーバのmysqlバージョンは5.0.21。

Welcome to the MySQL monitor. Commands end with ; or g.
Your MySQL connection id is 268 to server version: 5.0.21

Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

mysql> select password('passtest');
+----------------------+
&#124; password('passtest') &#124;
+----------------------+
&#124; 3a1787ad25124783 &#124;
+----------------------+
1 row in set (0.00 sec)

パスワードは16桁バイナリ。

たしかに、4.1以前については
パスワードは16桁。4.1以降は41桁のはず。

以下、5.0のマニュアルより。

If you perform a new installation of MySQL 5.0, the Password column is made 41 bytes long automatically.
Upgrading from MySQL 4.1 (4.1.1 or later in the 4.1 series) to MySQL 5.0 should not give rise to any issues in this regard because both versions use the same password hashing mechanism. If you wish to upgrade an older release of MySQL to version 5.0, you should upgrade to version 4.1 first, then upgrade the 4.1 installation to 5.0.

以下、訳(自力)。
MySQL5.0を新たにインストールした場合、Passwordの列は自動的に41バイト長で作られます。
MySQL4.1(4.1.1もしくは4.1シリーズ以降)から5.0へアップグレードする場合、どちらのバージョンも同じパスワードハッシュのメカニズム使うので、この点では問題ないんじゃない。 もしより古いバージョンから5.0へアップグレードするんだったら、まずバージョン4.1にアップグレードして、4.1から5.0にアップグレードさせたほうがいいんじゃない?

だそうです。
でもダメじゃん。

configオプションも見たけど、
それらしいところはないし。
infファイルか?

これから調査。わかったら追記します。

6.21追記
起動時のエラーログ。

[Warning] mysql.user table is not updated to new password format; Disabling new password usage until mysql_fix_privilege_tables is run

mysql.userテーブルは、新しいパスワードの形式へアップデートされてないよ。mysql_fix_privilege_tablesを実行するまで、新しい「password」構文?ってか新しい使い方はできないよ。

だって。

[コメント読む(0)]  人気ブログランキングへ