[1.4.x] Fixed #18144 -- Added backwards compatibility with old unsalted MD5 passwords

Thanks apreobrazhensky at gmail.com for the report.
Backport of 63d6a50dd from master.
[1.5.x] Lowered field ordering requirement in ogrinspect test

This test was randomly failing depending on the library environment.
Backport of a1c470a6f from master.
[1.4.x] Fixed #19702 -- Changed a SQL command syntax to be MySQL 4-compatible

Thanks matf at op.pl for the report.