Syntax:
ALTER TABLESPACE tablespace_name
    {ADD|DROP} DATAFILE 'file_name'
    [INITIAL_SIZE [=] size]
    [WAIT]
    ENGINE [=] engine_name

This statement is used with NDB cluster, which is not supported by MariaDB.

URL: https://mariadb.com/kb/en/alter-tablespace/

