I'm trying to create a table. I think the specifications of the table should be pretty obvious from the command I'm running:
create table users{
id mediumint unsigned not null auto_increment,
username varchar(40) not null,
sprinkles bigint unsigned not null,
passhash binary(64) not null,
passsalt binary(64) not null,
x decimal(10,1),
y decimal(10,1),
primary key (id),
unique key idx_unique_username (username)
} engine = INNODB DEFAULT character set = utf8 COLLATE = utf8_general_ci;
However, when I try entering that into MySQL, it gives me this error:
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 '{
id mediumint unsigned not null auto_increment,
username varchar(40) not null,
' at line 1
My mysql version is Ver 14.14 Distrib 5.5.31, for debian-linux-gnu (x86_64) using readline 6.2