WP Hive » Installation and Configuration

Table Prefix Issue

(3 posts)
  • Started 3 years ago by confuscius
  • Latest reply from confuscius

  1. confuscius
    Member

    As far as I understand the code then I am about to hit an issue! Let's say I have 20 domain names and they all begin with the same word eg startone. starttwo. startthree. etc, etc.

    What will happen when I hit the 10th/11th install?

    The counter seems to operate on the third character only - how can this be expanded? Numbers + letters? Does the WP prefix have to be limited to 3 characters? Would it be easier to use say wp001 for first install, wp002 for second, etc,etc - of course, if this allowed!

    Please advise further on the best way to tackle this issue.

    Posted 3 years ago #
  2. ikailo
    Developer

    It is intended to just keep counting: eg wp9_, wp10_, wp11_, etc.. However, there is actually a bug in the code, so you won't be able to get past 3 automatic installs using domains that start with the same word.

    You should create your prefixes manually in the wphive_hosts table. Set hostname to the domain name eg: domain1.com and prefix to the database prefix eg: dom1_.

    Then point the domain name to the directory and load up the first page to run the WP Install script.

    Posted 3 years ago #
  3. confuscius
    Member

    Is there a simple way to fix the code to take the simplistic approach of using the same starter 'wp' then say '000_' and increment. It is not a problem to set the records manually as I can sql in 100's at a time if I need to.

    Just trying to ensure that no one gets an unexpected surprise accidentally.

    Posted 3 years ago #

RSS feed for this topic

Reply

You must log in to post.