Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8564507
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T17:12:59+00:00 2026-06-11T17:12:59+00:00

Here we go again. MySQL throws this error: #1064 – You have an error

  • 0

Here we go again. MySQL throws this error: #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 'tinytext not null,
FirstName varchar(50) not null,
LastName varchar(50) nu' at line 5

What can be the possible syntax problem for this?

Here’s the code:

    CREATE TABLE posts (
        ID int unsigned not null auto_increment,
        Type enum('article', 'link') not null,
        Title text null,
        Link text null,
        BodyOrig longtext null,
        BodyProc longtext not null,
        URL tinytext not null,
        ShortURL tinytext not null,
        Status enum('drafted', 'published') not null,
        DateEdited timestamp null,
        DatePublished timestamp null,
        Topic enum('') null,

        primary key (ID, URL(255), ShortURL(10))
    );
    CREATE TABLE pages (
        ID int unsigned not null auto_increment,
        Name varchar(25) not null,
        Title text not null,
        BodyOrig longtext null,
        BodyProc longtext not null,
        URL tinytext not null,
        Hero text null,
        Status enum('drafted', 'published') not null,

        primary key (ID, Name, URL(255))
    );
    CREATE TABLE users (
        ID int unsigned not null auto_increment,
        Username varchar(25) not null,
        Password text not null,
        Key tinytext not null,
        FirstName varchar(50) not null,
        LastName varchar(50) null,
        DisplayName tinytext not null,
        Email tinytext not null,

        primary key (ID, Username, Key(255));
    );
    CREATE TABLE settings (
        Version varchar(10) not null,
        SiteName tinytext not null,
        Description tinytext not null,
        ColorScheme char(6) not null
    );

Either my eyes are just not in their tip-top shape, or there is something (specific formatting?) I am missing. Thank you very much for your help!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T17:13:00+00:00Added an answer on June 11, 2026 at 5:13 pm

    You’re trying to create a column named “Key” which is a reserved keyword.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I followed this guide here perfectly and have gone through it again but when
Hello again everyone, This time I have a problem with Intent & Extras. here's
I have a MySQL table here Starcraft2brackets: https://i.stack.imgur.com/welPq.png (re-edited so I could edit again,
I have this error again: Notice: Undefined index: IDNUMBER in E:\wamp\www\PHP\create.php on line 5
So, I seem to ask hard questions but here I go again. I have
Here's a question that comes up again and again in C++ class implementation. I'm
I am again posting the same question. Please help me in this problem. Here
the guy that asks weird things, here, again I see that they use different
I've spent a bit of time researching this on here and the mysql site
Here is the code that should create 2 new tables in MySQL if they

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.