Code Monkey home page Code Monkey logo

Comments (5)

mrjgreen avatar mrjgreen commented on August 15, 2024

Sorry to hear you are having problems - could you post your table schema?

from db-sync.

danielfaulknor avatar danielfaulknor commented on August 15, 2024

Thanks for your response! Here is the schema :)

CREATE TABLE `wp_statpress` (
  `id` mediumint(9) UNSIGNED NOT NULL,
  `date` int(8) UNSIGNED NOT NULL,
  `time` char(8) DEFAULT NULL,
  `ip` varchar(39) DEFAULT NULL,
  `urlrequested` text,
  `agent` text,
  `referrer` text,
  `search` text,
  `os` tinytext,
  `browser` tinytext,
  `searchengine` tinytext,
  `spider` tinytext,
  `feed` tinytext,
  `user` tinytext,
  `timestamp` int(10) UNSIGNED NOT NULL,
  `language` varchar(3) DEFAULT NULL,
  `country` varchar(3) DEFAULT NULL,
  `realpost` tinyint(1) DEFAULT NULL,
  `post_title` tinytext
) ENGINE=InnoDB;

--
-- Indexes for table `wp_statpress`
--
ALTER TABLE `wp_statpress`
  ADD PRIMARY KEY (`id`),
  ADD KEY `date` (`date`);

--
-- AUTO_INCREMENT for dumped tables
--

--
-- AUTO_INCREMENT for table `wp_statpress`
--
ALTER TABLE `wp_statpress`
  MODIFY `id` mediumint(9) UNSIGNED NOT NULL AUTO_INCREMENT;

from db-sync.

mrjgreen avatar mrjgreen commented on August 15, 2024

Thats great, could you also show me the db sync command you are running?

Does the schema on the remote table match the source table exactly? Indexes too?

from db-sync.

danielfaulknor avatar danielfaulknor commented on August 15, 2024

aha! The primary key index was missing from the target table. Thanks!!

from db-sync.

mrjgreen avatar mrjgreen commented on August 15, 2024

Great, I'm glad we got to the bottom of it! I'll add some test cases for this, and try to throw a more explicit error.

Thanks for the feedback :)

from db-sync.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.