![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I am trying to join 4 different tables. Here's the statement: SELECT profile_image_url, screen_name, url, description, first, last, coName FROM twitterProfiles, names, companies, events WHERE twitterProfiles.coID=names.coID AND names.coID=companies.coID AND events.RSVP='Y' AND events.eventOptOut != 'Y' AND events.eventID='JulyEvent' ORDER BY followers_count DESC I am getting the following error message: #126 - Incorrect key file for table '/tmp/#sql_7ad0_0.MYI'; try to repair it I'm guessing that this the temp table created by MySQL. Any suggestions? I rebooted the MySQL server already. I tried simpler queries, they work fine. I also ran REPAIR TABLE on all these tables. |
#3
| |||
| |||
|
|
EastSideDev wrote: I am trying to join 4 different tables. Here's the statement: SELECT profile_image_url, screen_name, url, description, first, last, coName FROM twitterProfiles, names, companies, events WHERE twitterProfiles.coID=names.coID AND names.coID=companies.coID AND events.RSVP='Y' AND events.eventOptOut != 'Y' AND events.eventID='JulyEvent' ORDER BY followers_count DESC I am getting the following error message: #126 - Incorrect key file for table '/tmp/#sql_7ad0_0.MYI'; try to repair it I'm guessing that this the temp table created by MySQL. Any suggestions? I rebooted the MySQL server already. I tried simpler queries, they work fine. I also ran REPAIR TABLE on all these tables. Are you running out of disk space where MySQL stores the temp files? If not, what version nof MySQL are you running? -- ================== Remove the "x" from my email address Jerry Stuckle JDS Computer Training Corp. jstuck... (AT) attglobal (DOT) net ================== |
#4
| |||
| |||
|
|
On Jun 21, 5:23 pm, Jerry Stuckle <jstuck... (AT) attglobal (DOT) net> wrote: EastSideDev wrote: I am trying to join 4 different tables. Here's the statement: SELECT profile_image_url, screen_name, url, description, first, last, coName FROM twitterProfiles, names, companies, events WHERE twitterProfiles.coID=names.coID AND names.coID=companies.coID AND events.RSVP='Y' AND events.eventOptOut != 'Y' AND events.eventID='JulyEvent' ORDER BY followers_count DESC I am getting the following error message: #126 - Incorrect key file for table '/tmp/#sql_7ad0_0.MYI'; try to repair it I'm guessing that this the temp table created by MySQL. Any suggestions? I rebooted the MySQL server already. I tried simpler queries, they work fine. I also ran REPAIR TABLE on all these tables. Are you running out of disk space where MySQL stores the temp files? If not, what version nof MySQL are you running? -- ================== Remove the "x" from my email address Jerry Stuckle JDS Computer Training Corp. jstuck... (AT) attglobal (DOT) net ================== In response to mysql -V, I get: mysql Ver 14.12 Distrib 5.0.90, for unknown-linux-gnu (x86_64) using readline 5.1 |
|
I don't know if I'm running out of space for the temp files, but the server has a 750GB hard drive, and 6GB of RAM, with hardly anything running. I just checked on available space (from WHM), and here's what I got (the query is not running): Device Size Used Available Percent Used Mount Point /usr/tmpDSK 485M 361M 99M 79% /tmp |
#5
| |||
| |||
|
|
I am trying to join 4 different tables. Here's the statement: SELECT profile_image_url, screen_name, url, description, first, last, coName FROM twitterProfiles, names, companies, events WHERE twitterProfiles.coID=names.coID AND names.coID=companies.coID AND events.RSVP='Y' AND events.eventOptOut != 'Y' AND events.eventID='JulyEvent' ORDER BY followers_count DESC I am getting the following error message: #126 - Incorrect key file for table '/tmp/#sql_7ad0_0.MYI'; try to repair it |
#6
| |||
| |||
|
|
I am trying to join 4 different tables. Here's the statement: SELECT profile_image_url, screen_name, url, description, first, last, coName FROM twitterProfiles, names, companies, events WHERE twitterProfiles.coID=names.coID AND names.coID=companies.coID AND events.RSVP='Y' AND events.eventOptOut != 'Y' AND events.eventID='JulyEvent' ORDER BY followers_count DESC |
#7
| |||
| |||
|
|
On 22 June, 01:01, EastSideDev <eastside... (AT) gmail (DOT) com> wrote: I am trying to join 4 different tables. Here's the statement: SELECT profile_image_url, screen_name, url, description, first, last, coName FROM twitterProfiles, names, companies, events WHERE twitterProfiles.coID=names.coID AND names.coID=companies.coID AND events.RSVP='Y' AND events.eventOptOut != 'Y' AND events.eventID='JulyEvent' ORDER BY followers_count DESC If you write queries like that you deserve all the problems you are getting. If you really think it is acceptable to write programs in such a mess, then I strongly advise you to take up another career. |
#8
| |||
| |||
|
|
In article <56bb2d96-4e05-4722-80e2-35083c44f... (AT) j4g2000yqh (DOT) googlegroups.com>, EastSideDev <eastside... (AT) gmail (DOT) com> wrote: I am trying to join 4 different tables. Here's the statement: SELECT profile_image_url, screen_name, url, description, first, last, coName FROM twitterProfiles, names, companies, events WHERE twitterProfiles.coID=names.coID AND names.coID=companies.coID AND events.RSVP='Y' AND events.eventOptOut != 'Y' AND events.eventID='JulyEvent' ORDER BY followers_count DESC I am getting the following error message: #126 - Incorrect key file for table '/tmp/#sql_7ad0_0.MYI'; try to repair it The error message and its cause are irrelevant. Your query is fundamentally broken: nothing in the WHERE clause establishes any connection between the events table and the other three. |
#9
| |||
| |||
|
|
On Jun 22, 8:16 am, Captain Paralytic <paul_laut... (AT) yahoo (DOT) com> wrote: On 22 June, 01:01, EastSideDev <eastside... (AT) gmail (DOT) com> wrote: I am trying to join 4 different tables. Here's the statement: SELECT profile_image_url, screen_name, url, description, first, last, coName FROM twitterProfiles, names, companies, events WHERE twitterProfiles.coID=names.coID AND names.coID=companies.coID AND events.RSVP='Y' AND events.eventOptOut != 'Y' AND events.eventID='JulyEvent' ORDER BY followers_count DESC If you write queries like that you deserve all the problems you are getting. If you really think it is acceptable to write programs in such a mess, then I strongly advise you to take up another career. You must be a real miserable person, in real life. Nothing else explains your constant vitriol. I suggest you get a life. |
#10
| |||
| |||
|
|
On Jun 22, 7:37=A0am, spamb... (AT) milmac (DOT) com (Doug Miller) wrote: In article <56bb2d96-4e05-4722-80e2-35083c44f... (AT) j4g2000yqh (DOT) googlegroups.= com>, EastSideDev <eastside... (AT) gmail (DOT) com> wrote: I am trying to join 4 different tables. Here's the statement: SELECT profile_image_url, screen_name, url, description, first, last, coName FROM twitterProfiles, names, companies, events WHERE twitterProfiles.coID=names.coID AND names.coID=companies.coID AND events.RSVP='Y' AND events.eventOptOut != 'Y' AND events.eventID='JulyEvent' ORDER BY followers_count DESC I am getting the following error message: #126 - Incorrect key file for table '/tmp/#sql_7ad0_0.MYI'; try to repair it The error message and its cause are irrelevant. Your query is fundamentally broken: nothing in the WHERE clause establishes any connection between the events table and the other three. The tables are joined at the coID level in the WHERE clause (see my query). |
|
This used to work, until recently. |
![]() |
| Thread Tools | |
| Display Modes | |
| |