1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Test site using same database?

Discussion in 'XenForo Questions and Support' started by Mouth, Jun 21, 2013.

  1. Mouth

    Mouth Well-Known Member

    Couple of questions...

    1. Can I create a copy of my XF install onto a sub-domain (passwd protected to adhere to XF rules), for testing purposes, using the same database? I will use this for testing add-on compatibility and styles

    2. Assume the answer to above is Yes, then could I also upgrade the test site to 1.2beta (which I assume make DB changes) without affecting the operation of the production site? Thusly, is a XF 1.2 database compatible backwards compatible when using XF 1.1 ?


    Thanks.
     
  2. Brogan

    Brogan XenForo Moderator Staff Member

    Yes, you can duplicate your site for testing.

    You will need to use a separate database though.
     
  3. Jeremy

    Jeremy XenForo Moderator Staff Member

    You could point the installation to the same database, it will just fail miserably as it won't have what its needed. If you perform an upgrade on the same database as your live install, you will upgrade the database for your live install. As Brogan said, duplicate your site and use a separate database.
     
  4. Slavik

    Slavik XenForo Moderator Staff Member

    Never do testing on a live database... unless you make a backup first, and even then its advised to use a copy.
     
  5. Biker

    Biker Well-Known Member

    What I did was copy the entire live site to the testbed, then exported the live database (using terminal), then imported the live database into the testbed using a different DB name (again, using terminal). Change the .htaccess for redirect issues as well as config.php for the new db name. Took me longer to import the DB than anything else during the process.
     
    Slavik likes this.
  6. Slavik

    Slavik XenForo Moderator Staff Member


    I've made a little bash script which does this all for me now :)
     
  7. oman

    oman Well-Known Member

    How could I copy my live site to localhost for testing purposes?
     
  8. Brogan

    Brogan XenForo Moderator Staff Member

Share This Page