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 ‘-config’ at line 1
在docker中使用mysql时,建立数据库,一直报错。
create database nacos-config //会一直报错
加上反引号后问题解决:
create database `nacos-config` //正确的格式