Results 1 to 4 of 4

Hybrid View

  1. #1
    Join Date
    Mar 2005
    Posts
    229
    Plugin Contributions
    0

    Default Custom database auto increment

    Hello,

    I've just moved my shop to my local machine for debugging purpose and I've also studied how to sync two databases (remote and local).
    As my hosting doesn't let me modify my my.cnf file I can't setup master to master replication, which is what I would have needed, so I was thinking about something else for running two identical shops on two locations (cause I'm wondering if I cannot use zen-cart as my POS system):

    1) Making my IDs beginning at 1000000.

    In this case, can an expert tell me for which ID's I have to modify my database auto increment. I'm quite sure for Orders, Customers, but I'm also quite sure I'm missing some key tables and IDs

    2) Another solution I'm thinking of is : how to set mysql so that the auto increment step is negative beginning at 0. This way, and as far as my math knowledge goes, I'm sure that my IDs won't ever overlap (one for web one for POS) even if my store is very very very successful.

    So my questions are :
    - What are the key IDs in a store database ?
    - How to change auto-increment beginning value ?
    - How to change auto-incremeent step value ?
    - Can the mysql auto increment step value ?

    Thanks for helping

    Regards

    Hubert

  2. #2
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: Custom database auto increment

    There was ollacart POS that was available for ZenCart which seems to have vanished

    All I could find was this

    http://www.webcart-consulting.com/
    Zen-Venom Get Bitten

  3. #3
    Join Date
    Feb 2012
    Location
    mostly harmless
    Posts
    1,809
    Plugin Contributions
    8

    Default Re: Custom database auto increment

    Does your host support remote MySQL access (with TLS)?

  4. #4
    Join Date
    Mar 2005
    Posts
    229
    Plugin Contributions
    0

    Default Re: Custom database auto increment

    As I don't have access to my.cnf, no, no TLS support...

 

 

Similar Threads

  1. Replies: 4
    Last Post: 12 Jan 2016, 08:59 PM
  2. v154 products_options, products_options_values: Indexes aren't auto-increment?
    By lat9 in forum Setting Up Categories, Products, Attributes
    Replies: 3
    Last Post: 23 Oct 2015, 08:28 PM
  3. Auto Increment Product Model Numbers?
    By jaqdaw in forum General Questions
    Replies: 0
    Last Post: 8 Feb 2011, 06:06 PM
  4. Adding/Making a custom auto form
    By EAPerformanceParts in forum General Questions
    Replies: 6
    Last Post: 22 Aug 2009, 01:43 AM
  5. 1062 Duplicate entry after db install is it auto-increment settings?
    By BrookieWookie in forum Upgrading from 1.3.x to 1.3.9
    Replies: 6
    Last Post: 24 Feb 2008, 02:30 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