Results 1 to 5 of 5

Hybrid View

  1. #1
    Join Date
    Oct 2005
    Location
    Eastern US
    Posts
    488
    Plugin Contributions
    0

    Default Installing and configuring 2 stores - is one database OK during development?

    I am building two stores. When I set the values in the config files is it alright to use the same database while I develop them?

    One is a new store. The other is a rebuild of my current site, so, ultimately, that store will be changed over to my existing database anyway.

    It just seems easier not to have to remember a 3rd database login information.

    Please let me know if you know of any reason that I should not be doing this.

    Best,
    Audra

  2. #2
    Join Date
    Oct 2005
    Location
    Eastern US
    Posts
    488
    Plugin Contributions
    0

    Default Re: Installing and configuring 2 stores - is one database OK during development?

    Just realized that something I did may or may not be alright. I installed zen v1302, made a few changes, ftp'd the store to my local drive, renamed it, then ftp'd it back to my server for the second store.

    It just dawned on me that I will need to edit the config files, reset file permissions and run the installer for this to work.

    But, is it alright that my config files were already named config.php? I don't really know why they are initially named dist-configure and then have to be renamed.

    Hoping I did not mess this up,
    Audra

  3. #3
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: Installing and configuring 2 stores - is one database OK during development?

    Quote Originally Posted by audradh
    But, is it alright that my config files were already named config.php? I don't really know why they are initially named dist-configure and then have to be renamed.
    They are named dist-configure.php so that if you get overzealous and quickly upload a new set of files to your site, you at least won't wipe out your configure.php files as a result of anything we gave you.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  4. #4
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: Installing and configuring 2 stores - is one database OK during development?

    You cannot use the same set of tables in the same database for more than one purpose at a time.

    If you have a database on your server named "myshop", and your store is running from that, then you cannot also do development or upgrade testing on the same tables in that database.

    If you can comprehend the concept and keep things separate, you "could" use the same "myshop" database, and use table-prefixes to separate sets of tables from each other .... myshop.live_address_book vs myshop.develop_address_book vs myshop.test_address_book etc. In these examples, live_, develop_, and test_ are the settings for DB_PREFIX that you'd set in each of your separate configure.php files for each of your separate sets of Zen Cart files you'd need for each of the three different purposes.
    If this confuses you, use separate databases instead... it'll be safer for you.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  5. #5
    Join Date
    Oct 2005
    Location
    Eastern US
    Posts
    488
    Plugin Contributions
    0

    Default Re: Installing and configuring 2 stores - is one database OK during development?

    Thanks! That sounds like just the sort of thing I might do one day if you hadn't prevented it, lol!

    Sounds like I should just take the two minutes to setup a new database and make sure I write down the information (documentation is a habit I really need to get into anyway!)

    Appreciate the help,
    Audra
    Last edited by audradh; 21 Jul 2006 at 09:17 AM.

 

 

Similar Threads

  1. v139h Two Stores - One Database
    By yaseent in forum General Questions
    Replies: 15
    Last Post: 27 Aug 2012, 06:07 PM
  2. Installing one code base multiple stores
    By canuckclint in forum Installing on a Linux/Unix Server
    Replies: 4
    Last Post: 15 Mar 2009, 11:11 PM
  3. 2 stores stores, 1 backend and database?
    By globallink in forum General Questions
    Replies: 2
    Last Post: 27 Nov 2008, 07:56 AM
  4. Multiple Stores in one installation sharing one database
    By bajanboost in forum General Questions
    Replies: 16
    Last Post: 9 Jul 2008, 04:58 PM
  5. Replies: 3
    Last Post: 29 May 2006, 04:18 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg