I am trying to run this query which worked 3-4 times but all of a sudden its execution is throwing errors -
Error Code: 1146
Table 'bugs.PROFILES' doesn't exist
What could have gone wrong all of a sudded?
I also did RESET QUERY CACHE
but no luck.
Below is the query -
SELECT b.bug_id AS Bug_Id,
b.bug_status AS STATUS,
b.resolution AS Resolution,
q.realname AS Reporter,
p.realname AS Assigned_To,
b.short_desc AS Summary,
DATE_FORMAT(b.deadline, '%m/%d/%Y')AS Deadline
FROM bugs b
INNER JOIN PROFILES p
ON b.assigned_to = p.userid
INNER JOIN PROFILES q
ON b.reporter = q.userid
WHERE ( bug_status IN ( 'RESOLVED', 'VERIFIED', 'INTEST', 'REOPENED' )
AND short_desc NOT LIKE '%Program:%'
AND deadline BETWEEN CURDATE() AND DATE_ADD(CURDATE(), INTERVAL 30 DAY)
)
OR ( bug_status IN ( 'RESOLVED', 'VERIFIED', 'INTEST' )
AND short_desc NOT LIKE '%Program:%'
AND deadline BETWEEN DATE_SUB(CURDATE(), INTERVAL 30 DAY) AND
CURDATE() )
ORDER BY bug_status ASC
Any suggestions pls?
The table bugs.profiles does exist.
It's tell you that bugs.PROFILES
table doesn't exist. Check it manually in bugs
database, PROFILES
table. Or by using SHOW TABLES
There are possibility your tables missing when you are moving database to new location or updating your mysql server.
这应该给你答案
SHOW TABLES LIKE 'bugs.PROFILES'
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.