Refer to https://dev.mysql.com/doc/refman/8.0/en/tablespace-copying.html to find out more about the limitations of this procedure.