Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Results 1 to 7 of 7
  1. #1
    Registered User
    Join Date
    Jul 2008
    Posts
    4

    Default SQL Syntax help

    Attempted table:

    CREATE TABLE `displayid` (
    `id` int(11) NOT NULL auto_increment,
    `title` text,
    `keyword` text,
    `scode` longtext,
    PRIMARY KEY (`id`)
    ) ENGINE=InnoDB DEFAULT CHARSET=latin1 COMMENT='InnoDB free: 7168 kB';

    ******************************************
    Return from Cpanel SQL
    SQL query:

    CREATE TABLE `displayid` (
    `id` int( 11 ) NOT NULL AUTO_INCREMENT ,
    `title` text,
    `keyword` text,
    `scode` longtext,
    PRIMARY KEY ( `id` )
    ) ENGINE = InnoDB DEFAULT CHARSET = latin1 COMMENT = 'InnoDB free: 7168 kB'

    MySQL said: Documentation
    #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 'DEFAULT

    CHARSET=latin1 COMMENT='InnoDB free: 7168 kB'' at line


    What to do?

    Thanks in Advance,

    Mike

  2. #2
    cPanel Development cpanelkenneth's Avatar
    Join Date
    Apr 2006
    Posts
    3,768
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Quote Originally Posted by distinctedge View Post
    What to do?

    Thanks in Advance,

    Mike
    Read the manual: http://dev.mysql.com/doc/refman/5.0/...ate-table.html

  3. #3
    Registered User
    Join Date
    Jul 2008
    Posts
    4

    Default

    Quote Originally Posted by cpanelkenneth View Post
    Thanks Kenneth! However it's a little deep for me.

    Can someone just help me get this table to run?

    Thanks again,

    Mike

  4. #4
    Technical Product Specialist cPanelDavidG's Avatar
    Join Date
    Nov 2006
    Location
    Houston, TX
    Posts
    10,718
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Quote Originally Posted by distinctedge View Post
    Thanks Kenneth! However it's a little deep for me.

    Can someone just help me get this table to run?

    Thanks again,

    Mike
    Why not just create it in phpMyAdmin?

  5. #5
    Registered User
    Join Date
    Jul 2008
    Posts
    4

    Default

    Quote Originally Posted by cPanelDavidG View Post
    Why not just create it in phpMyAdmin?
    Hi David,

    That is the attempted script install point. Try to see this from a newbie sight of view. I am simply trying to make a piece of software work by following instructions. In this case the code for the table is not working for this Cpanel set up. :

    #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 'DEFAULT CHARSET=latin1 COMMENT='InnoDB free: 7168 kB'' at line

    So I am searching for a way to make my syntax work. I assume I must change the code a bit. But what?

    Someone please help.

    Mike

  6. #6
    Technical Product Specialist cPanelDavidG's Avatar
    Join Date
    Nov 2006
    Location
    Houston, TX
    Posts
    10,718
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Quote Originally Posted by distinctedge View Post
    Hi David,

    That is the attempted script install point. Try to see this from a newbie sight of view. I am simply trying to make a piece of software work by following instructions. In this case the code for the table is not working for this Cpanel set up. :

    #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 'DEFAULT CHARSET=latin1 COMMENT='InnoDB free: 7168 kB'' at line

    So I am searching for a way to make my syntax work. I assume I must change the code a bit. But what?

    Someone please help.

    Mike
    Your choices are:

    1. Contact the script developer for assistance (usually the best thing to do)
    2. Read the SQL code and use phpMyAdmin to generate the same table
    3. Learn SQL, read the MySQL manual and adjust the code accordingly

    This is not a cPanel-specific issue.

  7. #7
    Registered User
    Join Date
    Jul 2008
    Posts
    4

    Default

    OK Thanks,

    Mike

Similar Threads & Tags
Similar threads

  1. sql db/ sql db users not checked in cpanel
    By Jheroen in forum Database Discussions
    Replies: 0
    Last Post: 11-23-2008, 11:36 AM
  2. sql db/ sql db users not checked in cpanel
    By Jheroen in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 11-23-2008, 11:36 AM
  3. SQL Syntax help
    By distinctedge in forum cPanel and WHM Discussions
    Replies: 6
    Last Post: 07-15-2008, 04:13 PM
  4. What would this syntax be?
    By Izkabola in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 07-04-2005, 04:40 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube