final class RejectedPasswordHash
    implements Diagnostic
    uses Snapshot
Public API: explicitly declared with @visibility public.

IDENTIFIED BY PASSWORD 'hash' in a MySQL 5.7 ALTER USER.

The 5.7 grammar shares the account list of GRANT and CREATE USER with ALTER USER, and the server rejects this form there with a syntax error. Source: https://dev.mysql.com/doc/refman/5.7/en/alter-user.html.

Describing the problemdoctest
(new \SqlSemantics\Platform\MySql\Statement\Account\Problem\RejectedPasswordHash())->message() // => 'ALTER USER does not accept IDENTIFIED BY PASSWORD.'

Methods§

public function message(): string

Describes the problem.

Returns

string
Test cases 1

Test cases 2§

Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.

Dedicated tests 1
Other tests reaching this symbol 1

Relations§

Instantiated in 1