I have a somewhat complex select statement that I can not get to run fast in anything other than phpMyAdmin. It runs within a few seconds in phpMyAdmin but if I run it from the mySQL console or from PHP it takes almost 7 minutes.
A "show processlist" shows the query is stuck in "Sending data". Here are some screenshots of the query...
Explain select: http://natestiller.com/query/explain.jpg
Query run in phpMyAdmin: http://natestiller.com/query/phpmyadminquery.jpg
Query run from mySQL console: http://natestiller.com/query/consolequery.jpg
Show Processlist while query is being run from console: http://natestiller.com/query/showprocesslist.jpg
Any ideas? What could phpMyAdmin be doing differently than everything else?
A "show processlist" shows the query is stuck in "Sending data". Here are some screenshots of the query...
Explain select: http://natestiller.com/query/explain.jpg
Query run in phpMyAdmin: http://natestiller.com/query/phpmyadminquery.jpg
Query run from mySQL console: http://natestiller.com/query/consolequery.jpg
Show Processlist while query is being run from console: http://natestiller.com/query/showprocesslist.jpg
Any ideas? What could phpMyAdmin be doing differently than everything else?







