Skip to content

FAIL Execute SQL / return code: 256 #427

@tholu

Description

@tholu

I'm getting the following error message(s) when running the script:

[!!] failed to execute: SELECT CONCAT(user, '@', host) FROM mysql.user WHERE IF(plugin='mysql_native_password', authentication_string, password) = PASSWORD('amateur') OR IF(plugin='mysql_native_password', authentication_string, password) = PASSWORD(UPPER('amateur')) OR IF(plugin='mysql_native_password', authentication_string, password) = PASSWORD(CONCAT(UPPER(LEFT('amateur', 1)), SUBSTRING('amateur', 2, LENGTH('amateur'))))

When I run the query manually, I get:

mysql> SELECT CONCAT(user, '@', host) FROM mysql.user WHERE IF(plugin='mysql_native_password', authentication_string, password) = PASSWORD('amateur') OR IF(plugin='mysql_native_password', authentication_string, password) = PASSWORD(UPPER('amateur')) OR IF(plugin='mysql_native_password', authentication_string, password) = PASSWORD(CONCAT(UPPER(LEFT('amateur', 1)), SUBSTRING('amateur', 2, LENGTH('amateur'))));
ERROR 1054 (42S22): Unknown column 'password' in 'where clause'

Server version: 5.7.16 MySQL Community Server (GPL)
MacOS Mojave 10.14.4 Beta (18E205e)

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions