mysql バイナリをダウンロードしました。ここの手順に従ってインストールしようとしています。コマンドを実行しようとするとbin/mysqld_safe --user=mysql &
、次の出力が得られます。
40211 19:04:56 mysqld_safe '/usr/local/mysql/data/irpowerweb.err' へのログ記録。 140211 19:04:56
mysqld_safe /usr/local/mysql/data からのデータベースで mysqld デーモンを開始します
エラーログの内容は次のとおりです。
140211 19:07:01 mysqld_safe Starting mysqld daemon with databases from /usr/local/mysql/data
2014-02-11 19:07:02 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2014-02-11 19:07:02 19511 [Note] Plugin 'FEDERATED' is disabled.
2014-02-11 19:07:02 19511 [Note] InnoDB: Using mutexes to ref count buffer pool pages
2014-02-11 19:07:02 19511 [Note] InnoDB: The InnoDB memory heap is disabled
2014-02-11 19:07:02 19511 [Note] InnoDB: Mutexes and rw_locks use InnoDB's own implementation
2014-02-11 19:07:02 19511 [Note] InnoDB: Compressed tables use zlib 1.2.3
2014-02-11 19:07:02 19511 [Note] InnoDB: Using Linux native AIO
2014-02-11 19:07:02 19511 [Note] InnoDB: Not using CPU crc32 instructions
2014-02-11 19:07:02 19511 [Note] InnoDB: Initializing buffer pool, size = 64.0M
InnoDB: mmap(68370432 bytes) failed; errno 12
2014-02-11 19:07:02 19511 [ERROR] InnoDB: Cannot allocate memory for the buffer pool
2014-02-11 19:07:02 19511 [ERROR] Plugin 'InnoDB' init function returned error.
2014-02-11 19:07:02 19511 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
2014-02-11 19:07:02 19511 [ERROR] Unknown/unsupported storage engine: InnoDB
2014-02-11 19:07:02 19511 [ERROR] Aborting
2014-02-11 19:07:02 19511 [Note] Binlog end
...
Shutting down stuff
...
2014-02-11 19:07:02 19511 [Note] /usr/local/mysql/bin/mysqld: Shutdown complete
140211 19:07:02 mysqld_safe mysqld from pid file /usr/local/mysql/data/irpowerweb.pid ended
ここにありmy.cnf
ます:
[mysqld]
innodb_buffer_pool_size = 64M
sql_mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES
mysqlをw / eの方法で実行したいだけです。を使用してパッケージをインストールし、yum install mysql-server
rpm パッケージをダウンロードしようとしましたが、開始できませんでした。私は単純な tar パッケージに落ち着き、上記のリンクをたどり始めましたが、再び開始できませんでした。
エラー状態なので、Cannot allocate memory for the buffer pool
メモリを 64m (デフォルトは 128m) に減らしてみましたが、うまくいきませんでした。私はこれの初心者です。たくさんの検索を行ってきましたが、これを修正する方法がわかりませんでした。
PSそれが役立つ場合、sshを使用してメモリが少ないサーバー(スワップなしで512MBのメモリ)に接続していますが、それはレッドハットLinuxだと思います。