Wordpress安装错误:错误:“表格前缀”不能为空

时间:2013-07-24 20:25:52

标签: wordpress content-management-system installation

尝试安装wordpress时。

我提供数据库名称,用户名,密码,数据库主机和表前缀。

但是当我点击“提交”时,我收到错误:ERROR: "Table Prefix" must not be empty.

1 个答案:

答案 0 :(得分:0)

步骤-1:打开wp-config.php文件找到$ table_prefix'并将其指定为$ table_prefix ='wp _';

步骤-2:在wp-config.php中添加function get_status_cab() { $status=$_POST['search']; echo '<label for="username" class="col-sm-3 control-label">Status</label>'; echo '<div class="col-sm-9">'; echo '<select class="form-control select2" name="status">'; $cek=$this->db_umum->select("SELECT id,status FROM lembaga where id='$status'"); foreach($cek as $cek){ $statusnya = $cek->status; } $hasil=array( "pusat" => "Pusat", "cabang" => "Cabang", "unit" => "Unit", "proyek" => "Proyek", "subproyek" => "Subproyek" ); foreach($hasil as $value => $label) { $no=0; if($value = $statusnya){ $disable[] = "disabled='disabled'"; }else{ $disable[] = ""; } echo "<option value='".$value."' $disable[$no]>".$label."</option>"; $no++; } echo '</select></div><br/>'; } 的详细信息

步骤3:现在重新安装wp并删除db table,如果你有其他指定相同的前缀。