このページを共有


今月のカレンダー



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

カテゴリ一覧

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

競馬+POG(1668)
当たらない予想と反省会(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年競馬場訪問記(26)
地方競馬馬主(5)
ひとくち馬主(3)

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

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

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

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


先月までのネタ

2025年
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)


最近よく読まれてるネタ



今日は(共有)所有馬キエティスム の応援に、夜勤明けで大井競馬場 へ行ってきました。
(2025年6月13日のネタ:78回)

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

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

今年最初の2歳重賞・栄冠賞 の観戦に、門別競馬場 へ行ってきました。(14回目の栄冠賞観戦)
(2025年6月24日のネタ:56回)

NHKマイルカップ の観戦に、3週連続の東京競馬場 へ行ってきました。
(2024年5月5日のネタ:55回)

競馬場の「音」にまつわる話。
(2015年12月17日のネタ:35回)

とっても残念なクイーン賞。
(2013年12月4日のネタ:35回)

今年最初の北海道遠征!今日はばんえい十勝 ・帯広競馬場 へ行ってきました。
(2025年6月23日のネタ:30回)

昨日は船橋競馬場 へ行ってきました。(ほぼ飲み会。)
(2025年6月7日のネタ:30回)

今日は安田記念 の観戦に、東京競馬場 へ行ってきました。
(2025年6月8日のネタ:26回)



最近のコメント



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

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

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

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

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

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

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

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

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

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



ネタの検索



管理人の競馬観戦記録


(2025年)

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

JRA新潟競馬場
5月18日

JRA東京競馬場
2月16日 (共同通信杯)
2月23日 (フェブラリーS)
5月11日 (NHKマイルC)
6月8日 (安田記念)

JRA中山競馬場
1月5日 (中山金杯)
1月19日 (京成杯)

JRA京都競馬場
5月31日

JRA阪神競馬場
4月13日 (桜花賞)

JRA小倉競馬場
1月26日

帯広競馬場
6月23日

水沢競馬場
3月11日

船橋競馬場
1月22日 (ブルーバードC)
2月14日
6月6日

大井競馬場
4月30日
5月23日
6月13日

笠松競馬場
2月7日

園田競馬場
5月30日

姫路競馬場
2月6日

高知競馬場
2月5日

佐賀競馬場
1月25日
3月6日
3月30日

門別競馬場
6月24日 (栄冠賞)


管理人の競馬家計簿


(最近14日分)

2025年6月15日阪神
10勝  回収率:0.0%

2025年6月15日高知
10勝  回収率:0.0%

2025年6月17日川崎
11勝  回収率:140.0%

2025年6月18日川崎
10勝  回収率:0.0%

2025年6月23日帯広
62勝  回収率:60.1%

2025年6月24日門別
20勝  回収率:0.0%

2025年6月25日浦和
10勝  回収率:0.0%

2025年6月26日門別
10勝  回収率:0.0%

2025年6月27日園田
21勝  回収率:40.0%

2025年6月28日函館
31勝  回収率:61.8%

2025年6月28日福島
40勝  回収率:0.0%

2025年6月28日小倉
41勝  回収率:78.8%

2025年合計
713220
勝率:30.9%  回収率:62.0%
(万馬券:2本的中)

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

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

2022年合計
2097563
勝率:26.8% 回収率:66.4%
(万馬券:29本的中)

2021年合計
2147527
勝率:24.5% 回収率:67.8%
(万馬券:24本的中)


管理人のつぶやき


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

「自宅サーバ」の「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)]  人気ブログランキングへ