Open GoogleCodeExporter opened 9 years ago
This is the query that it barfs on!
cursor.execute("SELECT CONCAT('''', user, '''@''', host, '''' ) AS account,
pass FROM (SELECT user1.user, user1.host, user2.user AS u2, user2.host AS h2,
left(user1.password,5) as pass FROM mysql.user AS user1 INNER JOIN mysql.user
AS user2 ON (user1.password = user2.password) WHERE user1.user != user2.user
AND user1.password != '') users GROUP BY (CONCAT(user,'@',host)) ORDER BY pass")
Original comment by eona...@gmail.com
on 13 Aug 2014 at 6:55
So my perl translates into python! changed this:
GROUP BY (CONCAT(user,'@',host))
to this:
GROUP BY account,pass
Now on to the next query!
Original comment by eona...@gmail.com
on 13 Aug 2014 at 7:07
ARG! it is my sql_mode that is causing the problem. I removed
ONLY_FULL_GROUP_BY. I suddenly thought to check my sql_mode.
Original comment by eona...@gmail.com
on 13 Aug 2014 at 7:23
Original issue reported on code.google.com by
eona...@gmail.com
on 13 Aug 2014 at 6:53