There is 1 comment.
 
 
Admin Tools Application / cid:jira-generated-image-avatar-c34540a8-8e1d-4a5b-b609-c1b384032097 ADMINTOOL-64 Open

Add support for MariaDB

 
View issue   ยท   Add comment
 

1 comment

 
cid:jira-generated-image-avatar-b8f59e69-b529-459a-ae24-f2f665f07802 Antoine Mottier on 01/Oct/24 16:58
 

Regarding the Space Used tool wrongly reporting database being MySQL instead of MariaDB I think the root cause is the following code (direct link source on GitHub):

    public static DatabaseProduct toProduct(String productNameOrJDBCScheme)
    {
    // ...
        else if (isMySQL(productNameOrJDBCScheme)) {
            product = MYSQL;
        }
		// ...
    }
    // ...
    private static boolean isMySQL(String productNameOrJDBCScheme)
    {
        return matches(productNameOrJDBCScheme, MYSQL) || matches(productNameOrJDBCScheme, MARIADB);
    }

The explanation of this behavior is explain in XWIKI-17912 description.

I drafted a pull request to try to fix that: https://github.com/xwiki/xwiki-platform/pull/3530