将 WordPress 数据库导入到新主机,现在网站不显示
我在一台主机(bluehost)上创建了一个站点,现在客户希望它在另一台主机(starlogic)上。这是我所做的:
从bluehost导出数据库表并将它们导入到starlogic服务器上创建的数据库中。
我用新域替换了 sql 文件中的所有旧域名引用。
我在旧的 bluehost 服务器上创建的新 starlogic 服务器上安装了 WordPress 主题。
在我将旧数据库信息导入新数据库之前,该站点将显示(当然没有任何创建的页面或内容)。导入数据库信息后,我可以进入 WordPress 后端,但当我查看实际站点时,什么也没有显示,只有一个空白屏幕。
我不确定什么代码(如果有的话)会有所帮助,所以请告诉我,我已将其发布。
I made a site on one host (bluehost) and now the client wants it on another host (starlogic). Here is what I did:
Exported the database tables from bluehost and imported them into the database created on the starlogic server.
I replaced all of the old domain name references in the sql file with the new domain.
I installed the WordPress theme on the new starlogic server which was created on the old bluehost server.
Before I imported the old database info into the new database the site would show up (without any of the created pages or content of course). After I imported the database info I can get into the WordPress backend but when I go to view the actual site nothing shows up, just a blank white screen.
I am not sure what code if any would be helpful to see so just let me know and I was post it.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
WP 网站白屏的典型修复方法是重命名除 20 个之外的所有主题文件夹,以强制使用默认主题或在管理中更改主题;重命名插件文件夹以强制停用所有插件;重置永久链接;确保您传输的主题中没有任何硬编码的 URL。
如果这些不起作用,并且您使用文本编辑器在数据库中找到/更改了 URL,请重试并在 phpmyadmin 中使用 SQL 查询:
Typical fixes for a WP site white screen is to rename all theme folders except for twenty-ten to force the default theme or change the theme in admin; rename the plugins folder to force deactivate all plugins; reset permalinks; be sure you don't have any hardcoded URLs in the theme that you transferred.
If those don't work, and if you found/changed URLs in the DB with a text editor, try it again and use SQL queries in phpmyadmin:
我也有这个问题。您还需要查看的一处是:
在导出 sql 文件中。它指向新服务器中不存在的主题。
I also have this problem. One more place you need to look at is:
in export sql file. It pointed to a theme that doesn't exist in the new server.