Support to use OceanBase like MySQL as metadata database (#13662)
* modify the order of creating tables
* use temp variable to set 'sql_mode'
* Revert "modify the order of creating tables"
This reverts commit 6f3534e92824ac0c94cbef8f79a4d8cd8e17142a.