Injader

How to use a different database prefix

This is an advanced topic because it requires you to edit a PHP file, and most sites should not need to change the prefix.

By default, all database tables in Injader are prefixed with maj_, e.g. maj_access_log.

You can change this if you wish, however, you must do it before you install Injader. Otherwise, it will be up to you to rename your tables - something that should not be taken lightly!

Simply edit the following file: sys/includes/ifw/IQuery_Tables.php

At the top you will see the following:

define('IFW_TBL_PFX', "maj_");

You can change the maj_ to whatever you like, but ensure you only use letters, numbers, or underscores. The first character should be a letter. You can remove the prefix altogether if you wish - to do this just remove the maj_ and leave the double quotes.

Save the file and your tables will now use the new prefix.

Navigation: start

 
how_to_use_a_different_database_prefix.txt · Last modified: 2009/03/23 22:05 by admin