Reply
Old October 2nd, 2002 Top | #1
farseeker
 
farseeker's Avatar
Unregistered
Posts: n/a

Default mySQL + Unix

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!
  Reply With Quote
Old October 4th, 2002 Top | #2
farseeker
 
farseeker's Avatar
Unregistered
Posts: n/a

Default

Heh its ok, I found out I missed a "not". Thanks for all the help, guys...
  Reply With Quote

Reply

Bookmarks

Thread Tools

Posting Rules

Similar Threads
Thread Thread Starter Forum Replies Last Post
Unix Toolbox Dark Atheist Linux & BSD 5 March 23rd, 2008 1:21pm
Crash course in UNIX Brad Linux & BSD 27 June 2nd, 2006 8:16pm
Some UNIX responses to some UNIX commands: Geffy Funny Farm 2 March 8th, 2004 11:25pm
Database in Unix? @n!e Windows Desktop Systems 1 November 2nd, 2002 6:12pm
which UNIX o/s ? SPeedY_B Linux & BSD 17 September 26th, 2002 2:05am