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

  • Home
  • SEARCH
  • 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 4343128
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T11:42:30+00:00 2026-05-21T11:42:30+00:00

I am getting the following from the mysql_error(): You have an error in your

  • 0

I am getting the following from the mysql_error():

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 –>’assets’ (‘assetid’ INT UNSIGNED NOT NULL AUTO_INCREMENT , PRIMARY KEY(‘assetid'<– at line 1

I’ve also tried something like this :

'assets' ('assetid' INT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY,

…but with no luck. The mysql version is 5.0.7.

EDIT:

Actually, I’ve tried it without (‘) first before putting it. The code is dynamic, but these are the examples:

CREATE TABLE 'assets' (
   'assetid' INT UNSIGNED NOT NULL AUTO_INCREMENT, 
    PRIMARY KEY('assetid'),
    'rfid' VARCHAR( 128 ) ,
    'createddate' DATE ,
    'modifieddate' DATE ,
    'curlocid' INT( 11 ) ,
    'type' VARCHAR( 128 ) ,
    'brand' VARCHAR( 128 ) ,
    'name' VARCHAR( 128 ) ,
    'condition' VARCHAR( 128 ) 
);

EDIT 2:

Just now I tried changing all the single quotes ( ‘ ) with back ticks ( ` ).. Other error occurred..

Can’t create table ‘mydb.assets’ (errno: 121)

Is this better or worse?

EDIT 3:

I tried to create it using different table names and guess what? It works! Gosh, why can’t I create table name ‘assets’?? is it because there is some leftovers for previous operation?? if so how to I clean it?? what if i said that i delete the table by deleting it’s file??(frm,myd,myi)(not drop it, due to laziness).. how do i fix it?

  • 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-05-21T11:42:31+00:00Added an answer on May 21, 2026 at 11:42 am

    This question is old but I just going to tell the answer on how to resolve this. In case someone stumbled upon it.. In this case, it’s the default ENGINE that is used. I haven’t noticed it until now, that the server i’m using (Z-WAMP) configure INNODB as it’s default engine. After I changed it to MyISAM, which is the default engine for mysql, everything works perfectly!! however, thanks for the guys who are helping me out..

    In this file –> my.cnf, change this line:

    default-storage-engine=MyISAM
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Im running the following query from my PhpMyadmin sql tab CREATE TRIGGER testTrigger AFTER
I have a MySQL database in a 3rd party server. I am trying to
I recently added a new table to my database and am getting the following
I have multiple (read 10s) MySQL slaves running in a LAN. Obviously, I cannot
I building a simple search feature that checks against a column desc in mysql
I have recently started exploring free hosting sites where they provide free mysql and
I am just trying to get the latest auto generated key from the mysql
I have the following table structure. One table EQUITIES and a table for each
I'm trying to create the following query in CI using ActiveRecord SELECT *, (
Is it possible to create a mysql view and table in same name for

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.