in mysql interactive terminal, when I want to create a new database
mysql> create database albedo-new;
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 '-new' at line 1
I'm not sure whether mysql allow '-' in a database name.
mysql does allow hyphens in database names
use backticks
create database `albedo-new`
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With