Windows7(64bit)にMySQL5.5(64bit)をインストール
関連記事『MSVCR100.DLL が見つからなかったため、アプリケーションを開始できませんでした。』
Windows7 - MySQL5.5インストール
Windows7 - Apacheインストール/VMWareファイル共有
Windows7 - PHPインストール
↑インストールに失敗した人はこちら。
↑MSVCR100.DLLで怒られた人はコチラ。
- まずはダウンロード!
- MySQL公式ダウンロードサイトへアクセス
- 画面左の「MySQL Community Server」を選択
- 「Windows (x86, 64-bit), MSI Installer 5.5.17 32.6M」の「Download」選択
- MySQLのユーザー登録を求められる。適当に登録。個人の勉強用なのでcompanyはnoって入れた。
- 登録後すぐにミラーサイトの選択になるので、日本の中からどれか選ぶ。
今回は勉強用なのでリスクの高い最新版にした。本来は要件に合わせて32bit/5.1系などを検討すべし。
登録済みの場合は登録時のメアドにパスワードを受け取れるでそれを入力。
- mysql-5.5.17-winx64.msiインストール
- completeで入れました。インストール自体はすぐ終わります。
- 広告は[Next][Next][Next]!
- インストール終了時「Launch the MySQL Instance Configuration Wizard」にチェックを入れてFinish
- 「Detailed Configuration」選択→[Next]
- 「Developer Machine」選択→[Next]
- 「Multifunctional Database」選択→[Next]
- InnoDBのデータファイルのインストールパスはそのままで[Next]
- Please set the approximate number of concurrent connections to the Server.
- Please set the networking options
- Please select the default character set
- Please set the Windows options
- Please set the security options.
- Ready to execute
途中Windows7のUACがポップするのでぽちっとしてあげる必要があります。
「MySQL Instance Configuration Wizard」が別ダイアログで起動します。
「Decision support(DSS)/OLAP」選択、[Next]
Enable TCP/IP Networking チェックON (Default) Port Number 3306 (Default) Add firewall exception for this port チェックON Enable Strict Mode チェックON (Default)
「Best support For Multilingualism」(UTF-8)を選択して[Next]
「Install as Windows Service」チェックON (Default) Service Nameは「MySQL」 (Default) 「Launch the MySQL Server automatically」チェックON (Default) 「Include Bin Directory in Windows PATH」チェックON ※MySQLをアンインスコしてサービスが残っている場合ここで[Next]押下時にエラーが出ます。こんなメッセージ↓ 『A Windows service with the name MySQL already exists. Please uninstall this service correctly or choose a different name for the new service』
「Modify Security Settings」チェックON (Default) 「New root password」ルートパスワード(任意)を入力 「Confirm」もう一度ルートパスワードを入力 「Enable root access from remote machines」チェックON 「Create An Anonymouse Account」チェックOFF (Default)
ラジオボタンみたいなのが4つ表示されるが、押せない(笑) 無視して[Execute]。実行するとラジオボタンにチェックが付いていきます。(あ、そういう役割?みたいな) my.iniのインストールパスが表示されるので変なところに作られていないか確認 ※全然関係の無いフォルダに作られたりすることがあるそうです C:\Program Files\MySQL\MySQL Server 5.5\my.ini (これなら問題なし)
- コマンドプロンプトからテスト
- コマンドプロンプトを開き、「mysql -u root -p」でmysqlへアクセスします。
パスワードはインストール中に指定したrootパスワードを入力。 ↓こんなログが表示されれば成功です。
C:\Users\YasuharuLabo>mysql -u root -p Enter password: ************** Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 3 Server version: 5.5.17 MySQL Community Server (GPL) Copyright (c) 2000, 2011, 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>
- 作者: 遠藤俊裕,坂井恵,館山聖司,鶴長鎮一,とみたまさひろ,班石悦夫,松信嘉範
- 出版社/メーカー: 翔泳社
- 発売日: 2011/08/26
- メディア: 大型本
- 購入: 9人 クリック: 82回
- この商品を含むブログ (9件) を見る