作者:mobiledu2502925333 | 来源:互联网 | 2022-09-28 11:49
若WordPress已安装,首先将wp-config.php中的$table_prefix值wp_修改为所需要的表前缀,然后将MySQL数据库中的对应表前缀均修改为新的表前缀,最后执行数据库更新即可。
/**
* WordPress Database Table prefix.
*
* You can have multiple installations in one database if you give each a unique
* prefix. Only numbers, letters, and underscores please!
*/
$table_prefix = 'wp_';
修改后:
代码如下:
/**
* WordPress Database Table prefix.
*
* You can have multiple installations in one database if you give each a unique
* prefix. Only numbers, letters, and underscores please!
*/
$table_prefix = 'blog_';