mysql - 卸载 MAMP 后如何恢复我的网站?

标签 mysql wordpress localhost mamp

我正在使用 MAMP 在本地处理 WordPress,但是 MySQL 服务器无法启动,因此我遇到了一些问题,因此我决定卸载 MAMP。

现在我重新安装了,MySQL 服务器可以正常工作,但我丢失了对网站所做的所有操作,在卸载之前我对整个 MAMP 文件夹进行了备份。

有什么方法可以从备份中恢复我的网站吗?

mysql_error_log.err:

2019-01-20T19:17:07.354392Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2019-01-20T19:17:07.354481Z 0 [Note] --secure-file-priv is set to NULL. Operations related to importing and exporting data are disabled
2019-01-20T19:17:07.355021Z 0 [ERROR] Cannot open Windows EventLog; check privileges, or start server with --log_syslog=0
2019-01-20T19:17:07.355045Z 0 [Note] C:\MAMP\\bin\mysql\bin\mysqld.exe (mysqld 5.7.24-log) starting as process 12444 ...
2019-01-20T19:19:42.728216Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2019-01-20T19:19:42.728309Z 0 [Note] --secure-file-priv is set to NULL. Operations related to importing and exporting data are disabled
2019-01-20T19:19:42.728909Z 0 [ERROR] Cannot open Windows EventLog; check privileges, or start server with --log_syslog=0
2019-01-20T19:19:42.728934Z 0 [Note] C:\MAMP\\bin\mysql\bin\mysqld.exe (mysqld 5.7.24-log) starting as process 4224 ...
2019-01-20T19:21:28.706864Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2019-01-20T19:21:28.706960Z 0 [Note] --secure-file-priv is set to NULL. Operations related to importing and exporting data are disabled
2019-01-20T19:21:28.707537Z 0 [ERROR] Cannot open Windows EventLog; check privileges, or start server with --log_syslog=0
2019-01-20T19:21:28.707565Z 0 [Note] C:\MAMP\\bin\mysql\bin\mysqld.exe (mysqld 5.7.24-log) starting as process 5944 ...

最佳答案

只需从备份中恢复/复制数据库文件即可。

在 Windows 上,MAMP 数据库数据位于 C:\MAMP\db\mysql

在 Mac 上,位于 /Library/Application Support/appsolute/MAMP PRO/db/mysql57

希望这对您有帮助。等待您的反馈。

关于mysql - 卸载 MAMP 后如何恢复我的网站?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54279742/

相关文章:

MySQL 性能 : letting a UNIQUE field generate an error or manually checking it

mysql - 在同一个表上连接两个 mysql 查询的结果

php - CSS:图像和文本在 wordpress 帖子中对齐

authentication - 为跨源请求设置cookie

c - recvfrom 未收到取决于使用的 ai_family

mysql:提高分组查询性能?

css - 如何集成两个菜单 Wordpress 插件?

php - 在最近的订单模板和管理订单上显示产品帖子类型高级自定义字段(woocommerce)

Apache 服务器 - 未加载本地主机

mysql - 运行 Rails 迁移后如何对这个 MySQL 重复条目错误进行分类?