質問をすることでしか得られない、回答やアドバイスがある。

15分調べてもわからないことは、質問しよう!

新規登録して質問してみよう
ただいま回答率
85.48%
MySQL

MySQL(マイエスキューエル)は、TCX DataKonsultAB社などが開発するRDBMS(リレーショナルデータベースの管理システム)です。世界で最も人気の高いシステムで、オープンソースで開発されています。MySQLデータベースサーバは、高速性と信頼性があり、Linux、UNIX、Windowsなどの複数のプラットフォームで動作することができます。

MAMP

Mac 上で WordPress などの動的ページのサイトが作れるように環境を構築するフリーソフト

Q&A

解決済

1回答

558閲覧

MAMP MySQL復旧について

退会済みユーザー

退会済みユーザー

総合スコア0

MySQL

MySQL(マイエスキューエル)は、TCX DataKonsultAB社などが開発するRDBMS(リレーショナルデータベースの管理システム)です。世界で最も人気の高いシステムで、オープンソースで開発されています。MySQLデータベースサーバは、高速性と信頼性があり、Linux、UNIX、Windowsなどの複数のプラットフォームで動作することができます。

MAMP

Mac 上で WordPress などの動的ページのサイトが作れるように環境を構築するフリーソフト

0グッド

0クリップ

投稿2017/10/21 02:31

MAC OSXが本体のオーバーヒートで落ちてしまい
MAMPもMySQLが立ち上がった状態で強制終了されました。

再起動後にMAMPのMySQLが立ち上がらなくなり
下記を試しましたが解決に至っていません。

text

1[mysqld] 2innodb_force_recovery = 3 3innodb_purge_threads = 0

MySQLサーバ起動時のMAMP PROのエラーログは下記の通りです。

text

1171021 11:14:44 mysqld_safe Logging to '/Applications/MAMP/logs/mysql_error.log'. 2171021 11:14:44 mysqld_safe Starting mysqld daemon with databases from /Library/Application Support/appsolute/MAMP PRO/db/mysql56 32017-10-21 11:14:45 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details). 42017-10-21 11:14:45 0 [Note] --secure-file-priv is set to NULL. Operations related to importing and exporting data are disabled 52017-10-21 11:14:45 0 [Note] /Applications/MAMP/Library/bin/mysqld (mysqld 5.6.35) starting as process 68221 ... 62017-10-21 11:14:45 68221 [Warning] Setting lower_case_table_names=2 because file system for /Library/Application Support/appsolute/MAMP PRO/db/mysql56/ is case insensitive 72017-10-21 11:14:45 68221 [Note] Plugin 'FEDERATED' is disabled. 82017-10-21 11:14:45 68221 [Note] InnoDB: Using atomics to ref count buffer pool pages 92017-10-21 11:14:45 68221 [Note] InnoDB: The InnoDB memory heap is disabled 102017-10-21 11:14:45 68221 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins 112017-10-21 11:14:45 68221 [Note] InnoDB: Memory barrier is not used 122017-10-21 11:14:45 68221 [Note] InnoDB: Compressed tables use zlib 1.2.8 132017-10-21 11:14:45 68221 [Note] InnoDB: Using CPU crc32 instructions 142017-10-21 11:14:45 68221 [Note] InnoDB: Initializing buffer pool, size = 128.0M 152017-10-21 11:14:45 68221 [Note] InnoDB: Completed initialization of buffer pool 162017-10-21 11:14:45 68221 [Note] InnoDB: Highest supported file format is Barracuda. 172017-10-21 11:14:45 68221 [Note] InnoDB: The log sequence numbers 1600717 and 1600717 in ibdata files do not match the log sequence number 2648003 in the ib_logfiles! 182017-10-21 11:14:45 68221 [Note] InnoDB: Database was not shutdown normally! 192017-10-21 11:14:45 68221 [Note] InnoDB: Starting crash recovery. 202017-10-21 11:14:45 68221 [Note] InnoDB: Reading tablespace information from the .ibd files... 212017-10-21 11:14:45 68221 [ERROR] InnoDB: Attempted to open a previously opened tablespace. Previous tablespace mysql/slave_worker_info uses space ID: 5 at filepath: ./mysql/slave_worker_info.ibd. Cannot open tablespace wordpress/wp_term_taxonomy which uses space ID: 5 at filepath: ./wordpress/wp_term_taxonomy.ibd 222017-10-21 11:14:45 7fffbfa9f3c0 InnoDB: Operating system error number 2 in a file operation. 23InnoDB: The error means the system cannot find the path specified. 24InnoDB: If you are installing InnoDB, remember that you must create 25InnoDB: directories yourself, InnoDB does not create them. 26InnoDB: Error: could not open single-table tablespace file ./wordpress/wp_term_taxonomy.ibd 27InnoDB: We do not continue the crash recovery, because the table may become 28InnoDB: corrupt if we cannot apply the log records in the InnoDB log to it. 29InnoDB: To fix the problem and start mysqld: 30InnoDB: 1) If there is a permission problem in the file and mysqld cannot 31InnoDB: open the file, you should modify the permissions. 32InnoDB: 2) If the table is not needed, or you can restore it from a backup, 33InnoDB: then you can remove the .ibd file, and InnoDB will do a normal 34InnoDB: crash recovery and ignore that table. 35InnoDB: 3) If the file system or the disk is broken, and you cannot remove 36InnoDB: the .ibd file, you can set innodb_force_recovery > 0 in my.cnf 37InnoDB: and force InnoDB to continue crash recovery here. 38171021 11:14:45 mysqld_safe mysqld from pid file /Applications/MAMP/tmp/mysql/mysql.pid ended

/Applications/MAMP/db/mysql56

text

1-rw-rw---- 1 ****** admin 56 9 17 01:28 auto.cnf 2-rw-rw---- 1 ****** admin 50331648 10 4 03:21 ib_logfile0 3-rw-rw---- 1 ****** admin 50331648 9 17 01:28 ib_logfile1 4-rw-rw---- 1 ****** admin 12582912 10 4 03:21 ibdata1 5drwxrwxr-x 81 ****** admin 2754 7 3 20:35 mysql 6-rw-rw-r-- 1 ****** admin 7 7 3 20:35 mysql_upgrade_info 7drwxrwxr-x 55 ****** admin 1870 7 3 20:35 performance_schema 8コード

環境がMAMPゆえに対処法がわからず、
最悪データベースは飛んでも構わないと思っています。
ただMAMP PRO自体は設定が込んでいるため再インストールは避けたく思っております。

復旧に向けてアドバイスいただけますでしょうか。

気になる質問をクリップする

クリップした質問は、後からいつでもMYページで確認できます。

またクリップした質問に回答があった際、通知やメールを受け取ることができます。

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

guest

回答1

0

ベストアンサー

調べに調べましたが結論として、みなさん初期化されているようです。

投稿2017/10/21 12:51

退会済みユーザー

退会済みユーザー

総合スコア0

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

15分調べてもわからないことは
teratailで質問しよう!

ただいまの回答率
85.48%

質問をまとめることで
思考を整理して素早く解決

テンプレート機能で
簡単に質問をまとめる

質問する

関連した質問