【问题标题】:How do I recover my sites after uninstall MAMP?卸载 MAMP 后如何恢复我的网站?
【发布时间】:2019-06-14 05:44:52
【问题描述】:

我在本地使用 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 ...

【问题讨论】:

    标签: mysql wordpress localhost mamp


    【解决方案1】:

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

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

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

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

    【讨论】:

    • 我把原来的文件夹换成了备份的,但是mysql服务器又不行了
    • 我建议您将 /Applications/MAMP/logs/mysql_error_log.err 中的错误日志复制/粘贴到您的问题中。有了这些信息,问题出在哪里就会更清楚。
    • 由于错误似乎与权限/权限有关,您是否尝试过“以管理员身份运行”?
    • 是的,问题仍然存在。这个问题是在我的计算机关闭时开始的,当我重新开始时它停止工作
    猜你喜欢
    • 2012-08-05
    • 1970-01-01
    • 2014-07-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-01-02
    • 2021-06-16
    • 2014-08-16
    相关资源
    最近更新 更多