12. ・MySQL Installer for Windows
mysql-installer-community-5.5.28.2.msi 207.0M
2011年9月に追加され(5.5.15~) 、2012年8月頃に改良された
Serverの他WorkBenchなども一括でインストールできる統合インストーラ
・ MySQL Server msi (インストーラ)
mysql-5.5.28-win32.msi 31.1M
“Server”のGUIインストーラ
・ MySQL Server zip (アーカイブ)
mysql-5.5.28-win32.zip 143.3M
バイナリ等とデータディレクトリを固めたアーカイブファイル
・ソースファイル
mysql-5.5.28.zip 28.2M
ソースファイル。コンパイルが必要
22. ・オプション--consoleが、重要
エラーログへの出力をコンソール画面に表示し、Ctrl+Cでサーバを停止できるようになる
$ C:¥ MySQL¥ mysql-5.5.28-win32¥bin¥mysqld.exe --console
121017 0:07:14 [Note] Plugin 'FEDERATED' is disabled.
121017 0:07:14 InnoDB: The InnoDB memory heap is disabled
121017 0:07:14 InnoDB: Mutexes and rw_locks use Windows interlocked functions
121017 0:07:14 InnoDB: Compressed tables use zlib 1.2.3
121017 0:07:14 InnoDB: Initializing buffer pool, size = 128.0M
121017 0:07:14 InnoDB: Completed initialization of buffer pool
121017 0:07:14 InnoDB: highest supported file format is Barracuda.
121017 0:07:14 InnoDB: Waiting for the background threads to start ここ重要
121017 0:07:15 InnoDB: 1.1.8 started; log sequence number 1595675
121017 0:07:15 [Note] Server hostname (bind-address): '0.0.0.0'; port: 3306
121017 0:07:15 [Note] - '0.0.0.0' resolves to '0.0.0.0';
121017 0:07:15 [Note] Server socket created on IP: '0.0.0.0'.
121017 0:07:15 [Note] Event Scheduler: Loaded 0 events
121017 0:07:15 [Note] C:¥MySQL¥mysql-5.5.28-win32¥bin¥mysqld.exe: ready for connections.
コマンドプロンプト上で--consoleオプションを付けてmysqld.exeを実行させると、
上記のような起動ログを出して待ち状態になる。
このウインドウを[×]で閉じてはいけない
画面操作の邪魔な時は、ウインドウを最小化しておくとよい。
23. 接続確認(1)
①接続確認のために、もう一つコマンドプロンプトを起動させる
(コマンドプロンプトの“プロパティ”から”画面の色”で”画面の背景”を変えると
サーバとクライアントの区別が付きやすいので便利)
②対話型のクライアントプログラム(mysql.exe)を起動する
$ C:¥MySQL¥mysql-5.5.28-win32¥bin¥mysql.exe -uroot
Welcome to the MySQL monitor. Commands end with ; or ¥g.
Your MySQL connection id is 1
Server version: 5.5.28 MySQL Community Server (GPL)
Copyright (c) 2000, 2012, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective owners.
Type 'help;' or '¥h' for help. Type '¥c' to clear the current input statement.
mysql>