Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/mysql/62.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
MySQL Innodb phpMyAdmin Mamp_Mysql_Wordpress - Fatal编程技术网

MySQL Innodb phpMyAdmin Mamp

MySQL Innodb phpMyAdmin Mamp,mysql,wordpress,Mysql,Wordpress,在本地WordPress安装程序上使用MAMPPRO后,我在重新启动MAMP后收到此消息。我试图获取日志文件以查看发生了什么 我真的很担心,因为我认为我在DB的所有工作都没有了 170406 10:53:17 mysqld_safe Logging to '/Applications/MAMP/logs/mysql_error.log'. 170406 10:53:17 mysqld_safe Starting mysqld daemon with databases from /Library

在本地WordPress安装程序上使用MAMPPRO后,我在重新启动MAMP后收到此消息。我试图获取日志文件以查看发生了什么

我真的很担心,因为我认为我在DB的所有工作都没有了

170406 10:53:17 mysqld_safe Logging to '/Applications/MAMP/logs/mysql_error.log'.
170406 10:53:17 mysqld_safe Starting mysqld daemon with databases from /Library/Application Support/appsolute/MAMP PRO/db/mysql56
2017-04-06 10:53:17 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2017-04-06 10:53:17 0 [Note] --secure-file-priv is set to NULL. Operations related to importing and exporting data are disabled
2017-04-06 10:53:17 0 [Note] /Applications/MAMP/Library/bin/mysqld (mysqld 5.6.35) starting as process 4179 ...
2017-04-06 10:53:17 4179 [Warning] Setting lower_case_table_names=2 because file system for /Library/Application Support/appsolute/MAMP PRO/db/mysql56/ is case insensitive
2017-04-06 10:53:17 4179 [Note] Plugin 'FEDERATED' is disabled.
2017-04-06 10:53:17 4179 [Note] InnoDB: Using atomics to ref count buffer pool pages
2017-04-06 10:53:17 4179 [Note] InnoDB: The InnoDB memory heap is disabled
2017-04-06 10:53:17 4179 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2017-04-06 10:53:17 4179 [Note] InnoDB: Memory barrier is not used
2017-04-06 10:53:17 4179 [Note] InnoDB: Compressed tables use zlib 1.2.8
2017-04-06 10:53:17 4179 [Note] InnoDB: Using CPU crc32 instructions
2017-04-06 10:53:17 4179 [Note] InnoDB: Initializing buffer pool, size = 128.0M
2017-04-06 10:53:17 4179 [Note] InnoDB: Completed initialization of buffer pool
2017-04-06 10:53:17 4179 [Note] InnoDB: Highest supported file format is Barracuda.
2017-04-06 10:53:17 4179 [Note] InnoDB: The log sequence numbers 18168717 and 18168717 in ibdata files do not match the log sequence number 18177957 in the ib_logfiles!
2017-04-06 10:53:17 4179 [Note] InnoDB: Database was not shutdown normally!
2017-04-06 10:53:17 4179 [Note] InnoDB: Starting crash recovery.
2017-04-06 10:53:17 4179 [Note] InnoDB: Reading tablespace information from the .ibd files...
2017-04-06 10:53:17 4179 [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 tandklinik_database/wp_term_taxonomy which uses space ID: 5 at filepath: ./tandklinik_database/wp_term_taxonomy.ibd
2017-04-06 10:53:17 7fffa4a803c0  InnoDB: Operating system error number 2 in a file operation.
InnoDB: The error means the system cannot find the path specified.
InnoDB: If you are installing InnoDB, remember that you must create
InnoDB: directories yourself, InnoDB does not create them.
InnoDB: Error: could not open single-table tablespace file ./tandklinik_database/wp_term_taxonomy.ibd
InnoDB: We do not continue the crash recovery, because the table may become
InnoDB: corrupt if we cannot apply the log records in the InnoDB log to it.
InnoDB: To fix the problem and start mysqld:
InnoDB: 1) If there is a permission problem in the file and mysqld cannot
InnoDB: open the file, you should modify the permissions.
InnoDB: 2) If the table is not needed, or you can restore it from a backup,
InnoDB: then you can remove the .ibd file, and InnoDB will do a normal
InnoDB: crash recovery and ignore that table.
InnoDB: 3) If the file system or the disk is broken, and you cannot remove
InnoDB: the .ibd file, you can set innodb_force_recovery > 0 in my.cnf
InnoDB: and force InnoDB to continue crash recovery here.
170406 10:53:17 mysqld_safe mysqld from pid file /Applications/MAMP/tmp/mysql/mysql.pid ended

您的数据库已损坏。按照日志中的建议进行操作。简单的解决方案是从Lol恢复-是的!问题是,现在一周内发生了三次。一定有什么事发生了。。本地wordpress的开发只是一种逃避吗@很明显,你在Mac电脑上,所以希望你用的是时间机器。在任何情况下,都应该找到包含数据库数据的文件夹。将您所拥有的内容复制到另一个文件夹,并按照@RiggsFolly的建议从TM备份中恢复。我不是MAMP用户,所以我不知道去哪里找,但你正在寻找包含大量
MYI
MYD
文件的文件夹。你在重新启动或关机之前是否彻底关闭了MYSQL?我仍然觉得奇怪,它发生了3次。。