We help IT Professionals succeed at work.

SQL Error on MySQL query

309 Views
Last Modified: 2013-11-29
Hi All
I am importing the Mysql schema for SNORT but the following query is causing errors

CREATE TABLE schema ( vseq        INT      UNSIGNED NOT NULL,
                      ctime       DATETIME NOT NULL,
                      PRIMARY KEY (vseq));


ERROR 1064 (42000) at line 23: 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 'schema ( vseq        INT      UNSIGNED NOT NULL,
                      ctime    ' at line 1
Comment
Watch Question

Commented:
you should change the table-name.
Schema is a "protected" word in mysql
change schema in test, and that should work...
Software Developer
CERTIFIED EXPERT
Commented:
Unlock this solution and get a sample of our free trial.
(No credit card required)
UNLOCK SOLUTION
Top Expert 2008

Author

Commented:
Thx for both of you..I will accept leannonn's answer mainly because I can not rename the database name because SNORT needs it as is. Thx
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a sample view!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.