我正在使用 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/