1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-21 13:51:33 +02:00

Order database names in MySQL 8(bug #613)

This commit is contained in:
Jakub Vrana
2018-05-06 17:55:56 +02:00
parent 3c3d861f41
commit 11f24a52e4
2 changed files with 2 additions and 1 deletions

View File

@@ -386,7 +386,7 @@ if (!defined("DRIVER")) {
$return = get_session("dbs");
if ($return === null) {
$query = (min_version(5)
? "SELECT SCHEMA_NAME FROM information_schema.SCHEMATA"
? "SELECT SCHEMA_NAME FROM information_schema.SCHEMATA ORDER BY SCHEMA_NAME"
: "SHOW DATABASES"
); // SHOW DATABASES can be disabled by skip_show_database
$return = ($flush ? slow_query($query) : get_vals($query));