我正在为客户端迁移WP安装。我对如何做到这一点有所了解,但迁移WP对我来说是新的。
我有一个数据库和主安装备份,但是,在我鼓励我的客户购买新托管服务之前,我想确保备份工作并可以导入到新托管。为此,我尝试使用备份的数据库并安装到本地WAMP服务器。
不幸的是,我遇到了许多障碍: - 必须得到一个新的wp-config文件,因为它包含对以前的主机和插件的引用。 - 不得不摆弄apache及其端口...
现在我在尝试访问浏览器中的安装目录时从wp-config文件获取一个空白页面。我得到了一个连接,我甚至在wp-config文件中尝试了echo "test";
,该文件确实在浏览器中返回。
我已经失去了方向,几乎是我的意愿,有人可以帮我一把吗?
谢谢:)
编辑1:
我从debug.log获取以下内容
`[12-Jun-2018 03:37:33 UTC] PHP Stack trace:
[12-Jun-2018 03:37:33 UTC] PHP 1. {main}() E:\PROGRAMS\WAMP\www\wp_aupearfinal\index.php:0
[12-Jun-2018 03:37:33 UTC] PHP 2. require() E:\PROGRAMS\WAMP\www\wp_aupearfinal\index.php:17
[12-Jun-2018 03:37:33 UTC] PHP 3. require_once() E:\PROGRAMS\WAMP\www\wp_aupearfinal\wp-blog-header.php:13
[12-Jun-2018 03:37:33 UTC] PHP 4. require_once() E:\PROGRAMS\WAMP\www\wp_aupearfinal\wp-load.php:37
[12-Jun-2018 03:37:33 UTC] PHP 5. require_once() E:\PROGRAMS\WAMP\www\wp_aupearfinal\wp-config.php:52
[12-Jun-2018 03:37:33 UTC] PHP 6. do_action() E:\PROGRAMS\WAMP\www\wp_aupearfinal\wp-settings.php:450
[12-Jun-2018 03:37:33 UTC] PHP 7. WP_Hook->do_action() E:\PROGRAMS\WAMP\www\wp_aupearfinal\wp-includes\plugin.php:453
[12-Jun-2018 03:37:33 UTC] PHP 8. WP_Hook->apply_filters() E:\PROGRAMS\WAMP\www\wp_aupearfinal\wp-includes\class-wp-hook.php:310
[12-Jun-2018 03:37:33 UTC] PHP 9. call_user_func_array:{E:\PROGRAMS\WAMP\www\wp_aupearfinal\wp-includes\class-wp-hook.php:286}() E:\PROGRAMS\WAMP\www\wp_aupearfinal\wp-includes\class-wp-hook.php:286
[12-Jun-2018 03:37:33 UTC] PHP 10. wp_widgets_init() E:\PROGRAMS\WAMP\www\wp_aupearfinal\wp-includes\class-wp-hook.php:286
[12-Jun-2018 03:37:33 UTC] PHP 11. do_action() E:\PROGRAMS\WAMP\www\wp_aupearfinal\wp-includes\widgets.php:1648
[12-Jun-2018 03:37:33 UTC] PHP 12. WP_Hook->do_action() E:\PROGRAMS\WAMP\www\wp_aupearfinal\wp-includes\plugin.php:453
[12-Jun-2018 03:37:33 UTC] PHP 13. WP_Hook->apply_filters() E:\PROGRAMS\WAMP\www\wp_aupearfinal\wp-includes\class-wp-hook.php:310
[12-Jun-2018 03:37:33 UTC] PHP 14. call_user_func_array:{E:\PROGRAMS\WAMP\www\wp_aupearfinal\wp-includes\class-wp-hook.php:286}() E:\PROGRAMS\WAMP\www\wp_aupearfinal\wp-includes\class-wp-hook.php:286
[12-Jun-2018 03:37:33 UTC] PHP 15. rtbInit->register_widgets() E:\PROGRAMS\WAMP\www\wp_aupearfinal\wp-includes\class-wp-hook.php:286
`
有更好的调试:
[12-Jun-2018 04:32:43 UTC] PHP Warning: mysqli_real_connect(): MySQL server has gone away in E:\PROGRAMS\WAMP\www\wp_aupearfinal\wp-includes\wp-db.php on line 1531
[12-Jun-2018 04:32:43 UTC] PHP Stack trace:
[12-Jun-2018 04:32:43 UTC] PHP 1. {main}() E:\PROGRAMS\WAMP\www\wp_aupearfinal\index.php:0
[12-Jun-2018 04:32:43 UTC] PHP 2. require() E:\PROGRAMS\WAMP\www\wp_aupearfinal\index.php:17
[12-Jun-2018 04:32:43 UTC] PHP 3. require_once() E:\PROGRAMS\WAMP\www\wp_aupearfinal\wp-blog-header.php:13
[12-Jun-2018 04:32:43 UTC] PHP 4. require_once() E:\PROGRAMS\WAMP\www\wp_aupearfinal\wp-load.php:37
[12-Jun-2018 04:32:43 UTC] PHP 5. require_once() E:\PROGRAMS\WAMP\www\wp_aupearfinal\wp-config.php:52
[12-Jun-2018 04:32:43 UTC] PHP 6. require_wp_db() E:\PROGRAMS\WAMP\www\wp_aupearfinal\wp-settings.php:106
[12-Jun-2018 04:32:43 UTC] PHP 7. wpdb->__construct() E:\PROGRAMS\WAMP\www\wp_aupearfinal\wp-includes\load.php:404
[12-Jun-2018 04:32:43 UTC] PHP 8. wpdb->db_connect() E:\PROGRAMS\WAMP\www\wp_aupearfinal\wp-includes\wp-db.php:592
[12-Jun-2018 04:32:43 UTC] PHP 9. mysqli_real_connect() E:\PROGRAMS\WAMP\www\wp_aupearfinal\wp-includes\wp-db.php:1531
[12-Jun-2018 04:32:43 UTC] PHP Warning: mysqli_real_connect(): Error while reading greeting packet. PID=5716 in E:\PROGRAMS\WAMP\www\wp_aupearfinal\wp-includes\wp-db.php on line 1531
[12-Jun-2018 04:32:43 UTC] PHP Stack trace:
[12-Jun-2018 04:32:43 UTC] PHP 1. {main}() E:\PROGRAMS\WAMP\www\wp_aupearfinal\index.php:0
[12-Jun-2018 04:32:43 UTC] PHP 2. require() E:\PROGRAMS\WAMP\www\wp_aupearfinal\index.php:17
[12-Jun-2018 04:32:43 UTC] PHP 3. require_once() E:\PROGRAMS\WAMP\www\wp_aupearfinal\wp-blog-header.php:13
[12-Jun-2018 04:32:43 UTC] PHP 4. require_once() E:\PROGRAMS\WAMP\www\wp_aupearfinal\wp-load.php:37
[12-Jun-2018 04:32:43 UTC] PHP 5. require_once() E:\PROGRAMS\WAMP\www\wp_aupearfinal\wp-config.php:52
[12-Jun-2018 04:32:43 UTC] PHP 6. require_wp_db() E:\PROGRAMS\WAMP\www\wp_aupearfinal\wp-settings.php:106
[12-Jun-2018 04:32:43 UTC] PHP 7. wpdb->__construct() E:\PROGRAMS\WAMP\www\wp_aupearfinal\wp-includes\load.php:404
[12-Jun-2018 04:32:43 UTC] PHP 8. wpdb->db_connect() E:\PROGRAMS\WAMP\www\wp_aupearfinal\wp-includes\wp-db.php:592
[12-Jun-2018 04:32:43 UTC] PHP 9. mysqli_real_connect() E:\PROGRAMS\WAMP\www\wp_aupearfinal\wp-includes\wp-db.php:1531
[12-Jun-2018 04:32:43 UTC] PHP Warning: mysqli_real_connect(): (HY000/2006): MySQL server has gone away in E:\PROGRAMS\WAMP\www\wp_aupearfinal\wp-includes\wp-db.php on line 1531
[12-Jun-2018 04:32:43 UTC] PHP Stack trace:
[12-Jun-2018 04:32:43 UTC] PHP 1. {main}() E:\PROGRAMS\WAMP\www\wp_aupearfinal\index.php:0
[12-Jun-2018 04:32:43 UTC] PHP 2. require() E:\PROGRAMS\WAMP\www\wp_aupearfinal\index.php:17
[12-Jun-2018 04:32:43 UTC] PHP 3. require_once() E:\PROGRAMS\WAMP\www\wp_aupearfinal\wp-blog-header.php:13
[12-Jun-2018 04:32:43 UTC] PHP 4. require_once() E:\PROGRAMS\WAMP\www\wp_aupearfinal\wp-load.php:37
[12-Jun-2018 04:32:43 UTC] PHP 5. require_once() E:\PROGRAMS\WAMP\www\wp_aupearfinal\wp-config.php:52
[12-Jun-2018 04:32:43 UTC] PHP 6. require_wp_db() E:\PROGRAMS\WAMP\www\wp_aupearfinal\wp-settings.php:106
[12-Jun-2018 04:32:43 UTC] PHP 7. wpdb->__construct() E:\PROGRAMS\WAMP\www\wp_aupearfinal\wp-includes\load.php:404
[12-Jun-2018 04:32:43 UTC] PHP 8. wpdb->db_connect() E:\PROGRAMS\WAMP\www\wp_aupearfinal\wp-includes\wp-db.php:592
[12-Jun-2018 04:32:43 UTC] PHP 9. mysqli_real_connect() E:\PROGRAMS\WAMP\www\wp_aupearfinal\wp-includes\wp-db.php:1531
[12-Jun-2018 04:32:43 UTC] PHP Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in E:\PROGRAMS\WAMP\www\wp_aupearfinal\wp-includes\wp-db.php on line 1562
[12-Jun-2018 04:32:43 UTC] PHP Stack trace:
[12-Jun-2018 04:32:43 UTC] PHP 1. {main}() E:\PROGRAMS\WAMP\www\wp_aupearfinal\index.php:0
[12-Jun-2018 04:32:43 UTC] PHP 2. require() E:\PROGRAMS\WAMP\www\wp_aupearfinal\index.php:17
[12-Jun-2018 04:32:43 UTC] PHP 3. require_once() E:\PROGRAMS\WAMP\www\wp_aupearfinal\wp-blog-header.php:13
[12-Jun-2018 04:32:43 UTC] PHP 4. require_once() E:\PROGRAMS\WAMP\www\wp_aupearfinal\wp-load.php:37
[12-Jun-2018 04:32:43 UTC] PHP 5. require_once() E:\PROGRAMS\WAMP\www\wp_aupearfinal\wp-config.php:52
[12-Jun-2018 04:32:43 UTC] PHP 6. require_wp_db() E:\PROGRAMS\WAMP\www\wp_aupearfinal\wp-settings.php:106
[12-Jun-2018 04:32:43 UTC] PHP 7. wpdb->__construct() E:\PROGRAMS\WAMP\www\wp_aupearfinal\wp-includes\load.php:404
[12-Jun-2018 04:32:43 UTC] PHP 8. wpdb->db_connect() E:\PROGRAMS\WAMP\www\wp_aupearfinal\wp-includes\wp-db.php:592
[12-Jun-2018 04:32:43 UTC] PHP 9. wpdb->db_connect() E:\PROGRAMS\WAMP\www\wp_aupearfinal\wp-includes\wp-db.php:1557
[12-Jun-2018 04:32:43 UTC] PHP 10. mysql_connect() E:\PROGRAMS\WAMP\www\wp_aupearfinal\wp-includes\wp-db.php:1562
[12-Jun-2018 04:33:43 UTC] PHP Warning: mysql_connect(): MySQL server has gone away in E:\PROGRAMS\WAMP\www\wp_aupearfinal\wp-includes\wp-db.php on line 1562
[12-Jun-2018 04:33:43 UTC] PHP Stack trace:
[12-Jun-2018 04:33:43 UTC] PHP 1. {main}() E:\PROGRAMS\WAMP\www\wp_aupearfinal\index.php:0
[12-Jun-2018 04:33:43 UTC] PHP 2. require() E:\PROGRAMS\WAMP\www\wp_aupearfinal\index.php:17
[12-Jun-2018 04:33:43 UTC] PHP 3. require_once() E:\PROGRAMS\WAMP\www\wp_aupearfinal\wp-blog-header.php:13
[12-Jun-2018 04:33:43 UTC] PHP 4. require_once() E:\PROGRAMS\WAMP\www\wp_aupearfinal\wp-load.php:37
[12-Jun-2018 04:33:43 UTC] PHP 5. require_once() E:\PROGRAMS\WAMP\www\wp_aupearfinal\wp-config.php:52
[12-Jun-2018 04:33:43 UTC] PHP 6. require_wp_db() E:\PROGRAMS\WAMP\www\wp_aupearfinal\wp-settings.php:106
[12-Jun-2018 04:33:43 UTC] PHP 7. wpdb->__construct() E:\PROGRAMS\WAMP\www\wp_aupearfinal\wp-includes\load.php:404
[12-Jun-2018 04:33:43 UTC] PHP 8. wpdb->db_connect() E:\PROGRAMS\WAMP\www\wp_aupearfinal\wp-includes\wp-db.php:592
[12-Jun-2018 04:33:43 UTC] PHP 9. wpdb->db_connect() E:\PROGRAMS\WAMP\www\wp_aupearfinal\wp-includes\wp-db.php:1557
[12-Jun-2018 04:33:43 UTC] PHP 10. mysql_connect() E:\PROGRAMS\WAMP\www\wp_aupearfinal\wp-includes\wp-db.php:1562
[12-Jun-2018 04:33:43 UTC] PHP Warning: mysql_connect(): Error while reading greeting packet. PID=5716 in E:\PROGRAMS\WAMP\www\wp_aupearfinal\wp-includes\wp-db.php on line 1562
[12-Jun-2018 04:33:43 UTC] PHP Stack trace:
[12-Jun-2018 04:33:43 UTC] PHP 1. {main}() E:\PROGRAMS\WAMP\www\wp_aupearfinal\index.php:0
[12-Jun-2018 04:33:43 UTC] PHP 2. require() E:\PROGRAMS\WAMP\www\wp_aupearfinal\index.php:17
[12-Jun-2018 04:33:43 UTC] PHP 3. require_once() E:\PROGRAMS\WAMP\www\wp_aupearfinal\wp-blog-header.php:13
[12-Jun-2018 04:33:43 UTC] PHP 4. require_once() E:\PROGRAMS\WAMP\www\wp_aupearfinal\wp-load.php:37
[12-Jun-2018 04:33:43 UTC] PHP 5. require_once() E:\PROGRAMS\WAMP\www\wp_aupearfinal\wp-config.php:52
[12-Jun-2018 04:33:43 UTC] PHP 6. require_wp_db() E:\PROGRAMS\WAMP\www\wp_aupearfinal\wp-settings.php:106
[12-Jun-2018 04:33:43 UTC] PHP 7. wpdb->__construct() E:\PROGRAMS\WAMP\www\wp_aupearfinal\wp-includes\load.php:404
[12-Jun-2018 04:33:43 UTC] PHP 8. wpdb->db_connect() E:\PROGRAMS\WAMP\www\wp_aupearfinal\wp-includes\wp-db.php:592
[12-Jun-2018 04:33:43 UTC] PHP 9. wpdb->db_connect() E:\PROGRAMS\WAMP\www\wp_aupearfinal\wp-includes\wp-db.php:1557
[12-Jun-2018 04:33:43 UTC] PHP 10. mysql_connect() E:\PROGRAMS\WAMP\www\wp_aupearfinal\wp-includes\wp-db.php:1562
[12-Jun-2018 04:33:43 UTC] PHP Warning: mysql_connect(): MySQL server has gone away in E:\PROGRAMS\WAMP\www\wp_aupearfinal\wp-includes\wp-db.php on line 1562
[12-Jun-2018 04:33:43 UTC] PHP Stack trace:
[12-Jun-2018 04:33:43 UTC] PHP 1. {main}() E:\PROGRAMS\WAMP\www\wp_aupearfinal\index.php:0
[12-Jun-2018 04:33:43 UTC] PHP 2. require() E:\PROGRAMS\WAMP\www\wp_aupearfinal\index.php:17
[12-Jun-2018 04:33:43 UTC] PHP 3. require_once() E:\PROGRAMS\WAMP\www\wp_aupearfinal\wp-blog-header.php:13
[12-Jun-2018 04:33:43 UTC] PHP 4. require_once() E:\PROGRAMS\WAMP\www\wp_aupearfinal\wp-load.php:37
[12-Jun-2018 04:33:43 UTC] PHP 5. require_once() E:\PROGRAMS\WAMP\www\wp_aupearfinal\wp-config.php:52
[12-Jun-2018 04:33:43 UTC] PHP 6. require_wp_db() E:\PROGRAMS\WAMP\www\wp_aupearfinal\wp-settings.php:106
[12-Jun-2018 04:33:43 UTC] PHP 7. wpdb->__construct() E:\PROGRAMS\WAMP\www\wp_aupearfinal\wp-includes\load.php:404
[12-Jun-2018 04:33:43 UTC] PHP 8. wpdb->db_connect() E:\PROGRAMS\WAMP\www\wp_aupearfinal\wp-includes\wp-db.php:592
[12-Jun-2018 04:33:43 UTC] PHP 9. wpdb->db_connect() E:\PROGRAMS\WAMP\www\wp_aupearfinal\wp-includes\wp-db.php:1557
[12-Jun-2018 04:33:43 UTC] PHP 10. mysql_connect() E:\PROGRAMS\WAMP\www\wp_aupearfinal\wp-includes\wp-db.php:1562
[12-Jun-2018 04:33:43 UTC] PHP Fatal error: Maximum execution time of 120 seconds exceeded in E:\PROGRAMS\WAMP\www\wp_aupearfinal\wp-includes\wp-db.php on line 1562
[12-Jun-2018 04:33:43 UTC] PHP Stack trace:
[12-Jun-2018 04:33:43 UTC] PHP 1. {main}() E:\PROGRAMS\WAMP\www\wp_aupearfinal\index.php:0
[12-Jun-2018 04:33:43 UTC] PHP 2. require() E:\PROGRAMS\WAMP\www\wp_aupearfinal\index.php:17
[12-Jun-2018 04:33:43 UTC] PHP 3. require_once() E:\PROGRAMS\WAMP\www\wp_aupearfinal\wp-blog-header.php:13
[12-Jun-2018 04:33:43 UTC] PHP 4. require_once() E:\PROGRAMS\WAMP\www\wp_aupearfinal\wp-load.php:37
[12-Jun-2018 04:33:43 UTC] PHP 5. require_once() E:\PROGRAMS\WAMP\www\wp_aupearfinal\wp-config.php:52
[12-Jun-2018 04:33:43 UTC] PHP 6. require_wp_db() E:\PROGRAMS\WAMP\www\wp_aupearfinal\wp-settings.php:106
[12-Jun-2018 04:33:43 UTC] PHP 7. wpdb->__construct() E:\PROGRAMS\WAMP\www\wp_aupearfinal\wp-includes\load.php:404
[12-Jun-2018 04:33:43 UTC] PHP 8. wpdb->db_connect() E:\PROGRAMS\WAMP\www\wp_aupearfinal\wp-includes\wp-db.php:592
[12-Jun-2018 04:33:43 UTC] PHP 9. wpdb->db_connect() E:\PROGRAMS\WAMP\www\wp_aupearfinal\wp-includes\wp-db.php:1557
[12-Jun-2018 04:36:04 UTC] PHP Warning: mysqli_real_connect(): MySQL server has gone away in E:\PROGRAMS\WAMP\www\wp_aupearfinal\wp-includes\wp-db.php on line 1531
[12-Jun-2018 04:36:04 UTC] PHP Stack trace:
[12-Jun-2018 04:36:04 UTC] PHP 1. {main}() E:\PROGRAMS\WAMP\www\wp_aupearfinal\index.php:0
[12-Jun-2018 04:36:04 UTC] PHP 2. require() E:\PROGRAMS\WAMP\www\wp_aupearfinal\index.php:17
[12-Jun-2018 04:36:04 UTC] PHP 3. require_once() E:\PROGRAMS\WAMP\www\wp_aupearfinal\wp-blog-header.php:13
[12-Jun-2018 04:36:04 UTC] PHP 4. require_once() E:\PROGRAMS\WAMP\www\wp_aupearfinal\wp-load.php:37
[12-Jun-2018 04:36:04 UTC] PHP 5. require_once() E:\PROGRAMS\WAMP\www\wp_aupearfinal\wp-config.php:54
[12-Jun-2018 04:36:04 UTC] PHP 6. require_wp_db() E:\PROGRAMS\WAMP\www\wp_aupearfinal\wp-settings.php:106
[12-Jun-2018 04:36:04 UTC] PHP 7. wpdb->__construct() E:\PROGRAMS\WAMP\www\wp_aupearfinal\wp-includes\load.php:404
[12-Jun-2018 04:36:04 UTC] PHP 8. wpdb->db_connect() E:\PROGRAMS\WAMP\www\wp_aupearfinal\wp-includes\wp-db.php:592
[12-Jun-2018 04:36:04 UTC] PHP 9. mysqli_real_connect() E:\PROGRAMS\WAMP\www\wp_aupearfinal\wp-includes\wp-db.php:1531
[12-Jun-2018 04:36:04 UTC] PHP Warning: mysqli_real_connect(): Error while reading greeting packet. PID=5716 in E:\PROGRAMS\WAMP\www\wp_aupearfinal\wp-includes\wp-db.php on line 1531
[12-Jun-2018 04:36:04 UTC] PHP Stack trace:
[12-Jun-2018 04:36:04 UTC] PHP 1. {main}() E:\PROGRAMS\WAMP\www\wp_aupearfinal\index.php:0
[12-Jun-2018 04:36:04 UTC] PHP 2. require() E:\PROGRAMS\WAMP\www\wp_aupearfinal\index.php:17
[12-Jun-2018 04:36:04 UTC] PHP 3. require_once() E:\PROGRAMS\WAMP\www\wp_aupearfinal\wp-blog-header.php:13
[12-Jun-2018 04:36:04 UTC] PHP 4. require_once() E:\PROGRAMS\WAMP\www\wp_aupearfinal\wp-load.php:37
[12-Jun-2018 04:36:04 UTC] PHP 5. require_once() E:\PROGRAMS\WAMP\www\wp_aupearfinal\wp-config.php:54
[12-Jun-2018 04:36:04 UTC] PHP 6. require_wp_db() E:\PROGRAMS\WAMP\www\wp_aupearfinal\wp-settings.php:106
[12-Jun-2018 04:36:04 UTC] PHP 7. wpdb->__construct() E:\PROGRAMS\WAMP\www\wp_aupearfinal\wp-includes\load.php:404
[12-Jun-2018 04:36:04 UTC] PHP 8. wpdb->db_connect() E:\PROGRAMS\WAMP\www\wp_aupearfinal\wp-includes\wp-db.php:592
[12-Jun-2018 04:36:04 UTC] PHP 9. mysqli_real_connect() E:\PROGRAMS\WAMP\www\wp_aupearfinal\wp-includes\wp-db.php:1531
[12-Jun-2018 04:36:04 UTC] PHP Warning: mysqli_real_connect(): (HY000/2006): MySQL server has gone away in E:\PROGRAMS\WAMP\www\wp_aupearfinal\wp-includes\wp-db.php on line 1531
[12-Jun-2018 04:36:04 UTC] PHP Stack trace:
[12-Jun-2018 04:36:04 UTC] PHP 1. {main}() E:\PROGRAMS\WAMP\www\wp_aupearfinal\index.php:0
[12-Jun-2018 04:36:04 UTC] PHP 2. require() E:\PROGRAMS\WAMP\www\wp_aupearfinal\index.php:17
[12-Jun-2018 04:36:04 UTC] PHP 3. require_once() E:\PROGRAMS\WAMP\www\wp_aupearfinal\wp-blog-header.php:13
[12-Jun-2018 04:36:04 UTC] PHP 4. require_once() E:\PROGRAMS\WAMP\www\wp_aupearfinal\wp-load.php:37
[12-Jun-2018 04:36:04 UTC] PHP 5. require_once() E:\PROGRAMS\WAMP\www\wp_aupearfinal\wp-config.php:54
[12-Jun-2018 04:36:04 UTC] PHP 6. require_wp_db() E:\PROGRAMS\WAMP\www\wp_aupearfinal\wp-settings.php:106
[12-Jun-2018 04:36:04 UTC] PHP 7. wpdb->__construct() E:\PROGRAMS\WAMP\www\wp_aupearfinal\wp-includes\load.php:404
[12-Jun-2018 04:36:04 UTC] PHP 8. wpdb->db_connect() E:\PROGRAMS\WAMP\www\wp_aupearfinal\wp-includes\wp-db.php:592
[12-Jun-2018 04:36:05 UTC] PHP 9. mysqli_real_connect() E:\PROGRAMS\WAMP\www\wp_aupearfinal\wp-includes\wp-db.php:1531
[12-Jun-2018 04:36:05 UTC] PHP Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in E:\PROGRAMS\WAMP\www\wp_aupearfinal\wp-includes\wp-db.php on line 1562
[12-Jun-2018 04:36:05 UTC] PHP Stack trace:
[12-Jun-2018 04:36:05 UTC] PHP 1. {main}() E:\PROGRAMS\WAMP\www\wp_aupearfinal\index.php:0
[12-Jun-2018 04:36:05 UTC] PHP 2. require() E:\PROGRAMS\WAMP\www\wp_aupearfinal\index.php:17
[12-Jun-2018 04:36:05 UTC] PHP 3. require_once() E:\PROGRAMS\WAMP\www\wp_aupearfinal\wp-blog-header.php:13
[12-Jun-2018 04:36:05 UTC] PHP 4. require_once() E:\PROGRAMS\WAMP\www\wp_aupearfinal\wp-load.php:37
[12-Jun-2018 04:36:05 UTC] PHP 5. require_once() E:\PROGRAMS\WAMP\www\wp_aupearfinal\wp-config.php:54
[12-Jun-2018 04:36:05 UTC] PHP 6. require_wp_db() E:\PROGRAMS\WAMP\www\wp_aupearfinal\wp-settings.php:106
[12-Jun-2018 04:36:05 UTC] PHP 7. wpdb->__construct() E:\PROGRAMS\WAMP\www\wp_aupearfinal\wp-includes\load.php:404
[12-Jun-2018 04:36:05 UTC] PHP 8. wpdb->db_connect() E:\PROGRAMS\WAMP\www\wp_aupearfinal\wp-includes\wp-db.php:592
[12-Jun-2018 04:36:05 UTC] PHP 9. wpdb->db_connect() E:\PROGRAMS\WAMP\www\wp_aupearfinal\wp-includes\wp-db.php:1557
[12-Jun-2018 04:36:05 UTC] PHP 10. mysql_connect() E:\PROGRAMS\WAMP\www\wp_aupearfinal\wp-includes\wp-db.php:1562
更多日志!
[12-Jun-2018 05:03:07 UTC] PHP Warning: mysql_connect(): MySQL server has gone away in E:\PROGRAMS\WAMP\www\wp_aupearfinal\wp-includes\wp-db.php on line 1562
[12-Jun-2018 05:03:07 UTC] PHP Stack trace:
[12-Jun-2018 05:03:07 UTC] PHP 1. {main}() E:\PROGRAMS\WAMP\www\wp_aupearfinal\index.php:0
[12-Jun-2018 05:03:07 UTC] PHP 2. require() E:\PROGRAMS\WAMP\www\wp_aupearfinal\index.php:17
[12-Jun-2018 05:03:07 UTC] PHP 3. require_once() E:\PROGRAMS\WAMP\www\wp_aupearfinal\wp-blog-header.php:13
[12-Jun-2018 05:03:07 UTC] PHP 4. require_once() E:\PROGRAMS\WAMP\www\wp_aupearfinal\wp-load.php:37
[12-Jun-2018 05:03:07 UTC] PHP 5. require_once() E:\PROGRAMS\WAMP\www\wp_aupearfinal\wp-config.php:54
[12-Jun-2018 05:03:07 UTC] PHP 6. require_wp_db() E:\PROGRAMS\WAMP\www\wp_aupearfinal\wp-settings.php:106
[12-Jun-2018 05:03:07 UTC] PHP 7. wpdb->__construct() E:\PROGRAMS\WAMP\www\wp_aupearfinal\wp-includes\load.php:404
[12-Jun-2018 05:03:07 UTC] PHP 8. wpdb->db_connect() E:\PROGRAMS\WAMP\www\wp_aupearfinal\wp-includes\wp-db.php:592
[12-Jun-2018 05:03:07 UTC] PHP 9. wpdb->db_connect() E:\PROGRAMS\WAMP\www\wp_aupearfinal\wp-includes\wp-db.php:1557
[12-Jun-2018 05:03:07 UTC] PHP 10. mysql_connect() E:\PROGRAMS\WAMP\www\wp_aupearfinal\wp-includes\wp-db.php:1562
[12-Jun-2018 05:03:07 UTC] PHP Warning: mysql_connect(): Error while reading greeting packet. PID=8160 in E:\PROGRAMS\WAMP\www\wp_aupearfinal\wp-includes\wp-db.php on line 1562
[12-Jun-2018 05:03:07 UTC] PHP Stack trace:
[12-Jun-2018 05:03:07 UTC] PHP 1. {main}() E:\PROGRAMS\WAMP\www\wp_aupearfinal\index.php:0
[12-Jun-2018 05:03:07 UTC] PHP 2. require() E:\PROGRAMS\WAMP\www\wp_aupearfinal\index.php:17
[12-Jun-2018 05:03:07 UTC] PHP 3. require_once() E:\PROGRAMS\WAMP\www\wp_aupearfinal\wp-blog-header.php:13
[12-Jun-2018 05:03:07 UTC] PHP 4. require_once() E:\PROGRAMS\WAMP\www\wp_aupearfinal\wp-load.php:37
[12-Jun-2018 05:03:07 UTC] PHP 5. require_once() E:\PROGRAMS\WAMP\www\wp_aupearfinal\wp-config.php:54
[12-Jun-2018 05:03:07 UTC] PHP 6. require_wp_db() E:\PROGRAMS\WAMP\www\wp_aupearfinal\wp-settings.php:106
[12-Jun-2018 05:03:07 UTC] PHP 7. wpdb->__construct() E:\PROGRAMS\WAMP\www\wp_aupearfinal\wp-includes\load.php:404
[12-Jun-2018 05:03:07 UTC] PHP 8. wpdb->db_connect() E:\PROGRAMS\WAMP\www\wp_aupearfinal\wp-includes\wp-db.php:592
[12-Jun-2018 05:03:07 UTC] PHP 9. wpdb->db_connect() E:\PROGRAMS\WAMP\www\wp_aupearfinal\wp-includes\wp-db.php:1557
[12-Jun-2018 05:03:07 UTC] PHP 10. mysql_connect() E:\PROGRAMS\WAMP\www\wp_aupearfinal\wp-includes\wp-db.php:1562
[12-Jun-2018 05:03:15 UTC] PHP Warning: mysql_connect(): MySQL server has gone away in E:\PROGRAMS\WAMP\www\wp_aupearfinal\wp-includes\wp-db.php on line 1562
[12-Jun-2018 05:03:15 UTC] PHP Stack trace:
[12-Jun-2018 05:03:15 UTC] PHP 1. {main}() E:\PROGRAMS\WAMP\www\wp_aupearfinal\index.php:0
[12-Jun-2018 05:03:15 UTC] PHP 2. require() E:\PROGRAMS\WAMP\www\wp_aupearfinal\index.php:17
[12-Jun-2018 05:03:15 UTC] PHP 3. require_once() E:\PROGRAMS\WAMP\www\wp_aupearfinal\wp-blog-header.php:13
[12-Jun-2018 05:03:15 UTC] PHP 4. require_once() E:\PROGRAMS\WAMP\www\wp_aupearfinal\wp-load.php:37
[12-Jun-2018 05:03:15 UTC] PHP 5. require_once() E:\PROGRAMS\WAMP\www\wp_aupearfinal\wp-config.php:54
[12-Jun-2018 05:03:15 UTC] PHP 6. require_wp_db() E:\PROGRAMS\WAMP\www\wp_aupearfinal\wp-settings.php:106
[12-Jun-2018 05:03:15 UTC] PHP 7. wpdb->__construct() E:\PROGRAMS\WAMP\www\wp_aupearfinal\wp-includes\load.php:404
[12-Jun-2018 05:03:15 UTC] PHP 8. wpdb->db_connect() E:\PROGRAMS\WAMP\www\wp_aupearfinal\wp-includes\wp-db.php:592
[12-Jun-2018 05:03:15 UTC] PHP 9. wpdb->db_connect() E:\PROGRAMS\WAMP\www\wp_aupearfinal\wp-includes\wp-db.php:1557
[12-Jun-2018 05:03:15 UTC] PHP 10. mysql_connect() E:\PROGRAMS\WAMP\www\wp_aupearfinal\wp-includes\wp-db.php:1562
[12-Jun-2018 05:03:15 UTC] PHP Warning: mysql_connect(): Error while reading greeting packet. PID=8160 in E:\PROGRAMS\WAMP\www\wp_aupearfinal\wp-includes\wp-db.php on line 1562
[12-Jun-2018 05:03:15 UTC] PHP Stack trace:
[12-Jun-2018 05:03:15 UTC] PHP 1. {main}() E:\PROGRAMS\WAMP\www\wp_aupearfinal\index.php:0
[12-Jun-2018 05:03:15 UTC] PHP 2. require() E:\PROGRAMS\WAMP\www\wp_aupearfinal\index.php:17
[12-Jun-2018 05:03:15 UTC] PHP 3. require_once() E:\PROGRAMS\WAMP\www\wp_aupearfinal\wp-blog-header.php:13
[12-Jun-2018 05:03:15 UTC] PHP 4. require_once() E:\PROGRAMS\WAMP\www\wp_aupearfinal\wp-load.php:37
[12-Jun-2018 05:03:15 UTC] PHP 5. require_once() E:\PROGRAMS\WAMP\www\wp_aupearfinal\wp-config.php:54
[12-Jun-2018 05:03:15 UTC] PHP 6. require_wp_db() E:\PROGRAMS\WAMP\www\wp_aupearfinal\wp-settings.php:106
[12-Jun-2018 05:03:15 UTC] PHP 7. wpdb->__construct() E:\PROGRAMS\WAMP\www\wp_aupearfinal\wp-includes\load.php:404
[12-Jun-2018 05:03:15 UTC] PHP 8. wpdb->db_connect() E:\PROGRAMS\WAMP\www\wp_aupearfinal\wp-includes\wp-db.php:592
[12-Jun-2018 05:03:15 UTC] PHP 9. wpdb->db_connect() E:\PROGRAMS\WAMP\www\wp_aupearfinal\wp-includes\wp-db.php:1557
[12-Jun-2018 05:03:15 UTC] PHP 10. mysql_connect() E:\PROGRAMS\WAMP\www\wp_aupearfinal\wp-includes\wp-db.php:1562
[12-Jun-2018 05:03:15 UTC] PHP Warning: mysql_connect(): MySQL server has gone away in E:\PROGRAMS\WAMP\www\wp_aupearfinal\wp-includes\wp-db.php on line 1562
[12-Jun-2018 05:03:15 UTC] PHP Stack trace:
[12-Jun-2018 05:03:15 UTC] PHP 1. {main}() E:\PROGRAMS\WAMP\www\wp_aupearfinal\index.php:0
[12-Jun-2018 05:03:15 UTC] PHP 2. require() E:\PROGRAMS\WAMP\www\wp_aupearfinal\index.php:17
[12-Jun-2018 05:03:15 UTC] PHP 3. require_once() E:\PROGRAMS\WAMP\www\wp_aupearfinal\wp-blog-header.php:13
[12-Jun-2018 05:03:15 UTC] PHP 4. require_once() E:\PROGRAMS\WAMP\www\wp_aupearfinal\wp-load.php:37
[12-Jun-2018 05:03:15 UTC] PHP 5. require_once() E:\PROGRAMS\WAMP\www\wp_aupearfinal\wp-config.php:54
[12-Jun-2018 05:03:15 UTC] PHP 6. require_wp_db() E:\PROGRAMS\WAMP\www\wp_aupearfinal\wp-settings.php:106
[12-Jun-2018 05:03:15 UTC] PHP 7. wpdb->__construct() E:\PROGRAMS\WAMP\www\wp_aupearfinal\wp-includes\load.php:404
[12-Jun-2018 05:03:15 UTC] PHP 8. wpdb->db_connect() E:\PROGRAMS\WAMP\www\wp_aupearfinal\wp-includes\wp-db.php:592
[12-Jun-2018 05:03:15 UTC] PHP 9. wpdb->db_connect() E:\PROGRAMS\WAMP\www\wp_aupearfinal\wp-includes\wp-db.php:1557
[12-Jun-2018 05:03:15 UTC] PHP 10. mysql_connect() E:\PROGRAMS\WAMP\www\wp_aupearfinal\wp-includes\wp-db.php:1562
答案 0 :(得分:0)
1)全新备份文件,并将这些文件保存在wamp服务器的www /文件夹中。
2)进行mysql备份并将其转储到phpmyadmin中。
3)现在转到wp_options表,将URL更改为您的本地主机URL。
4)根据您的本地主机进行正确的数据库配置。
5)现在,在您的本地主机中运行wp项目
6)以管理员身份登录,然后在“设置”页面中更改“保存”页面。