ive atatched a jpg of what ive entered and here is the error message im receiving when trying to save the tables.
#1064 - 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 '(time), `key ip` TEXT(ip), `key file` TEXT(file))' at line 1
Question
ogri
1. create a database-table:
CREATE TABLE useronline (
time int(15) NOT NULL,
ip varchar(15) NOT NULL,
file varchar(50) NOT NULL,
PRIMARY KEY (time),
KEY ip (ip),
KEY file (file) );
these are the instructions to create the tables.
ive atatched a jpg of what ive entered and here is the error message im receiving when trying to save the tables.
#1064 - 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 '(time), `key ip` TEXT(ip), `key file` TEXT(file))' at line 1
any help appreciated
Link to comment
https://www.neowin.net/forum/topic/220407-mysql-error/Share on other sites
2 answers to this question
Recommended Posts