Jump to content

fenway

Staff Alumni
  • Posts

    16,168
  • Joined

  • Last visited

  • Days Won

    4

Everything posted by fenway

  1. The Percona Toolkit has something called pt-table-sync.
  2. Of course -- I just mean to say that there's nothing wrong with tying a MySQL DB to a NoSQL document image store -- pick the right hammer for each nail.
  3. I'm not sure where your question lies -- in the DB queries,, the PHP syntax for loops, or the HTML rendering?
  4. This is a common misunderstanding -- if you have a bowl of fruit, and you ask someone to hand you apples and oranges, you'll likely get 2 kinds of fruit. But this isn't a Boolean AND -- it's a Boolean OR. Asking for the fruit that is both an apple AND and orange will result in no matching fruit.
  5. That's not how a forum works -- share your advice with everyone.
  6. fenway

    MYSQL Problem

    Obviously, adjust to suit your column needs accordingly (untested): SELECT * FROM files INNER JOIN platforms ON ( files.id = platforms .file_id ) INNER JOIN resolutions ON ( files.id = resolutions.file_id ) WHERE resolutions.resolution = '$match_resolution' AND platforms.platform ='$match_platform';
  7. To be clear, it's a bad idea to store images (file contents) in an RDBMS -- noSQL is great for this stuff (because your files are still accessible from multiple nodes, etc.).
  8. What makes you think you're getting table locks?
  9. Requirement? Whose?
  10. That's how date strings are sorted, too (i.e. outside of mysql).
  11. The comparison operator will always "work" -- but the implicit casting just might not do what you'd expect.
  12. I suppose you can do it that way, though I never have -- what happens in PHP if the $id's aren't contigious? Will you get a sparsely populated array?
  13. If you're talking about InnoDB tables, it's very rare to get a table lock during normal CRUD operations -- unless you somehow issue a write statement that can't use an index.
  14. Writing out N forms isn't great either -- what if they want to make multiple changes? Usually, you just need another field with the ID, and then append this ID to each field name.
  15. MySQL doesn't know about clicks -- what are you actually trying to achieve?
  16. Without a query, EXPLAIN is meaningless.
  17. What we didn't "trust" was your explanation -- as you indicated, that's the hardest part to communicate.
  18. First, make the query without joining back to the contact name table.
  19. I simply meant that if you executed the statement, if would be plainly obvious from the syntax errors where the problems are.
  20. And TIMESTAMPs have time zone fun built-in.
  21. You know that SQL can tell you if your statement parses correctly -- and we can't guess -- but I can tell you that without quoting, you're going to in trouble. That's what placeholders are for.
  22. You can use COALESCE(), too.
  23. Please don't mark topics solved without posting solutions.
  24. There are tools that will do this -- mysqldump isn't one of them -- you're talking about diff-ing records and schemata.
  25. Use "SHOW OPEN TABLES" within the session.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.