mysql> CREATE DATABASE Dataindex2022_dbss_1 ON(NAME = Dataindex, FILENAME = '/var/lib/mysql/snapshot/Dataindex202220220218_data_1.ss') AS SNAPSHOT OF Dataindex2022;
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ON(NAME = Dataindex, FILENAME = '/var/lib/mysql/snapshot/Dataindex' at line 1
错误1064(42000):您的SQL语法有错误;检查一下你的语句是否正确
您看看是不是数据库版本不一致的问题