MySQL
        がすでにインストールされ、my.cnf
        の編集も終わって必要な InnoDB
        設定パラメータが設定されているとします。
        MySQL を起動する前に、InnoDB
        データファイルとログファイル用に指定したディレクトリが存在すること、およびそれらのディレクトリへのアクセス権があることを確認する必要があります。InnoDB
        によって作成されるのはファイルのみで、ディレクトリは作成されません。データファイルとログファイルを保存できるだけの十分なディスク領域があることも確認してください。
      
MySQL を起動すると、InnoDB はデータファイルとログファイルの作成を開始し、次のようなメッセージを出力します。
~/mysqlm/sql > mysqld InnoDB: The first specified datafile /home/heikki/data/ibdata1 did not exist: InnoDB: a new database to be created! InnoDB: Setting file /home/heikki/data/ibdata1 size to 134217728 InnoDB: Database physically writes the file full: wait... InnoDB: datafile /home/heikki/data/ibdata2 did not exist: new to be created InnoDB: Setting file /home/heikki/data/ibdata2 size to 262144000 InnoDB: Database physically writes the file full: wait... InnoDB: Log file /home/heikki/data/logs/ib_logfile0 did not exist: new to be created InnoDB: Setting log file /home/heikki/data/logs/ib_logfile0 size to 5242880 InnoDB: Log file /home/heikki/data/logs/ib_logfile1 did not exist: new to be created InnoDB: Setting log file /home/heikki/data/logs/ib_logfile1 size to 5242880 InnoDB: Log file /home/heikki/data/logs/ib_logfile2 did not exist: new to be created InnoDB: Setting log file /home/heikki/data/logs/ib_logfile2 size to 5242880 InnoDB: Started mysqld: ready for connections
        これで、新しい InnoDB
        データベースが作成されました。mysql
        などの通常使用する MySQL
        クライアントプログラムで MySQL
        サーバに接続できます。 mysqladmin
        shutdown で MySQL
        サーバをシャットダウンすると、InnoDB
        から次のようなメッセージが出力されます
      
010321 18:33:34 mysqld: Normal shutdown 010321 18:33:34 mysqld: Shutdown Complete InnoDB: Starting shutdown... InnoDB: Shutdown completed
        これで、データファイルとログのディレクトリを参照できるようになり、作成したファイルを確認できます。ログディレクトリには、ib_arch_log_0000000000
        という名前の小さなファイルも作成されます。これは、データベース作成時に作成されたファイルで、その後に
        InnoDB
        がログのアーカイブをオフに切り替えています。
        MySQL
        を再び起動すると、次のようなメッセージが出力されます。
      
~/mysqlm/sql > mysqld InnoDB: Started mysqld: ready for connections
This is a translation of the MySQL Reference Manual that can be found at dev.mysql.com. The original Reference Manual is in English, and this translation is not necessarily as up to date as the English version.
