Solved

Query

Posted on 2015-01-30
2
87 Views
Last Modified: 2015-02-05
How is it possible that I can run a simple query such as: SELECT * FROM jcost WHERE JOB_ID = 7855; and get (x) number of records. When I run the same query through PHP code written several years ago I get more records (x + n). Are these extra records in cache and SQLyog is only looking at data written to a table (not in cache)? How do I get the extra rows of data? Flush?
 
J
0
Comment
Question by:myvp
2 Comments
 
LVL 9

Accepted Solution

by:
Rob_Jeffrey earned 400 total points
ID: 40580930
If you are getting different results I would suspect that the PHP code is accessing a different server or database or even table.

There should be nothing such as cache that would skew the numbers as you've described.
0
 
LVL 83

Assisted Solution

by:Dave Baldwin
Dave Baldwin earned 100 total points
ID: 40581086
I agree with Rob.  If phpMyAdmin is available on the correct server, try running your query there.  You should get the same results as running directly against MySQL.

How many records are you talking about and how much difference?
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Fore-Foreword Today (2016) Maxmind has a new approach to the distribution of its data sets.  This article may be obsolete.  Instead of using the examples here, have a look at the MaxMind API (https://www.maxmind.com/en/geolite2-developer-package). …
All XML, All the Time; More Fun MySQL Tidbits – Dynamically Generate XML via Stored Procedure in MySQL Extensible Markup Language (XML) and database systems, a marriage we are seeing more and more of.  So the topics of parsing and manipulating XM…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …

860 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question