Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Query

Posted on 2015-01-30
2
Medium Priority
?
93 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 1600 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 84

Assisted Solution

by:Dave Baldwin
Dave Baldwin earned 400 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

Get your Disaster Recovery as a Service basics

Disaster Recovery as a Service is one go-to solution that revolutionizes DR planning. Implementing DRaaS could be an efficient process, easily accessible to non-DR experts. Learn about monitoring, testing, executing failovers and failbacks to ensure a "healthy" DR environment.

Question has a verified solution.

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

Load balancing is the method of dividing the total amount of work performed by one computer between two or more computers. Its aim is to get more work done in the same amount of time, ensuring that all the users get served faster.
Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…

885 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