更改默认Joomla数据库表前缀
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了更改默认Joomla数据库表前缀相关的知识,希望对你有一定的参考价值。
Substitute new_ placeholder in the second line with your new prefix. Run it: http://www.yoursite.com/rename.php and wait until it responds with an OK, usually after a couple of seconds. Delete the rename.php script. Edit the configuration.php file and find the line starting with var $dbprefix. It should look like this: var $dbprefix = 'jos_'; Replace the old jos_ prefix with new prefix, i.e. the one used in the second line of your rename.php script.
<?php $new_prefix = 'new_'; require_once 'configuration.php'; $config = new JConfig; $prefix = $config->dbprefix; $sql = "show tables where `Tables_in_{$config->db}` like '{$prefix}%'"; { $old = $row[0]; } echo "OK"; ?>
以上是关于更改默认Joomla数据库表前缀的主要内容,如果未能解决你的问题,请参考以下文章