Wordpress:错误:“表前缀"不能为空 [英] Wordpress : ERROR: "Table Prefix" must not be empty

查看:42
本文介绍了Wordpress:错误:“表前缀"不能为空的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试全新安装 Wordpress 4.5.2,但在数据库阶段遇到错误.填写正确的数据库详细信息并单击提交后,我收到此错误:

im trying to do a clean install of Wordpress 4.5.2 but running into an error at the database stage. After filling in the correct database details and clicking Submit i get this error:

错误:表前缀"不能为空.

ERROR: "Table Prefix" must not be empty.

经过一些研究,一些用户通过增加 PHP 设置下的 post_max_size 和 upload_max_filesize 解决了这个问题.我已经这样做了,但仍然得到同样的错误.apache 日志等没有指向任何确切的错误,只是给出了 500 错误 GET/wordpress/wp-admin/setup-config.html?step=2 HTTP/1.0

After doing some research some users have fixed the issue by increasing the post_max_size and upload_max_filesize under the PHP settings. I have done this but still get the same error. The apache logs etc. are not pointing torwards any exact error, just giving the 500 error GET /wordpress/wp-admin/setup-config.html?step=2 HTTP/1.0

我在 RHEL7.2 上运行 Plesk 12.5.30.

Im running Plesk 12.5.30 on RHEL7.2.

我以前安装过很多 Wordpress,这是我第一次遇到这个问题.我在同一台服务器上的其他几个域上安装了 wordpress,它们运行得很好,虽然它们没有安装在这台服务器上,只是最近复制了,所以不确定如果我也干净地安装了它们,是否会发生同样的错误.

I have done many Wordpress installs before and this is the first time i have come across this issue. I have wordpress installed on a few other domains on the same server and they are running just fine, although they were not installed on this server merely copied over recently so unsure if the same error would have occured had i clean installed them as well.

最后,我已经尝试删除域和数据库并再次创建它们,以防万一,但仍然存在相同的问题.

Lastly, i have already tried deleting the domain and database and creating them again just incase and still have the same issue.

任何建议将不胜感激.

谢谢克里斯

推荐答案

您需要定义 wp-config.php 文件中的表前缀.

You need to define table prefix in your wp-config.php file.

示例:

$table_prefix = 'chris_';

这篇关于Wordpress:错误:“表前缀"不能为空的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆