mySQL + Unix

F

farseeker

Guest
Hey all,

I've got a nice technical question for you all about mySQL on a Unix Server. Here's the deal:

1) I telnet my server (hosting.connect.com.au)
2) I log in fine
3) bash$ /opt/mysql/bin/mysql --host=mysql -P 10194 -p[password]
4) USE [dbname]
5) Enter the following command:

CREATE TABLE ib_calendar (
MEMBER_ID varchar(32) NOT NULL,
MEMBER_NAME varchar(32) NOT NULL,
DAY smallint(2) DEFAULT '0' NOT NULL,
MONTH smallint(2) DEFAULT '0' NOT NULL,
YEAR smallint(4) DEFAULT '0' NOT NULL,
TIME_ADJUST varchar(4),
UTIME int(10) NULL,
FORUM_ID smallint(5) NULL,
TOPIC_ID bigint(10) NULL,
PRIMARY KEY (MEMBER_ID),
INDEX calendar_idx1(FORUM_ID),
INDEX calendar_idx2(TOPIC_ID)
);

6) It spits back:

ERROR 1064: You have an error in your SQL syntax near '(10) NULL,
FORUM_ID smallint(5) NULL,
TOPIC_ID bigint(10) NULL,
PRIMARY KE' at line 8

Which has go to be the most in-decisive error messages I've ever seen in my life.

Any ideas if theres anything wrong with those commands? ANY help would be GREATLY appreciated!! Its been irritating me for the last 6 hours, and it's now 12:15am!
 
Heh its ok, I found out I missed a "not". Thanks for all the help, guys...
 

Members online

No members online now.

Latest profile posts

Also Hi EP and people. I found this place again while looking through a oooollllllldddd backup. I have filled over 10TB and was looking at my collection of antiques. Any bids on the 500Mhz Win 95 fix?
Any of the SP crew still out there?
Xie wrote on Electronic Punk's profile.
Impressed you have kept this alive this long EP! So many sites have come and gone. :(

Just did some crude math and I apparently joined almost 18yrs ago, how is that possible???
hello peeps... is been some time since i last came here.
Electronic Punk wrote on Sazar's profile.
Rest in peace my friend, been trying to find you and finally did in the worst way imaginable.

Forum statistics

Threads
62,015
Messages
673,494
Members
5,621
Latest member
naeemsafi
Back