ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Error Number: 1064

January 03, 2011 5:45pm

Subscribe [4]
  • #1 / Jan 03, 2011 5:45pm

    CanfieldSci

    4 posts

    I am getting the following on install.  Any help is appreciated.

    A Database Error Occurred
    Error Number: 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 ‘TYPE=MyISAM DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci’ at line 10

    CREATE TABLE `exp_cp_search_index` ( `search_id` int(10) UNSIGNED NOT NULL auto_increment, `controller` varchar(20) default NULL, `method` varchar(50) default NULL, `language` varchar(20) default NULL, `access` varchar(50) default NULL, `keywords` text, PRIMARY KEY `search_id` (`search_id`), FULLTEXT(`keywords`) ) TYPE=MyISAM DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci

    Filename: C:\Program Files (x86)\Apache Software Foundation\Apache2.2\htdocs\ee213\metsys\codeigniter\system\database\DB_driver.php

    Line Number: 330

  • #2 / Jan 04, 2011 9:33am

    CanfieldSci

    4 posts

    Help with this would be much appreciated.  It seems that the error is due to the TYPE= being depreciated in the latest MySQL release.  i would prefer to not have to roll back to an old version of MySQL.

  • #3 / Jan 04, 2011 5:53pm

    Ingmar

    29245 posts

    What versions of PHP, MySQL and EE are you using?

  • #4 / Jan 05, 2011 10:03am

    CanfieldSci

    4 posts

    Using php 5.3 EE 2.1.3 and MySQL 5.5.

  • #5 / Jan 05, 2011 10:57am

    beardsell

    3 posts

    Same problem over here, im tring to install ee for the first time and ive got

    Error Number: 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 ‘TYPE=MyISAM DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci’ at line 10

    CREATE TABLE `exp_cp_search_index` ( `search_id` int(10) UNSIGNED NOT NULL auto_increment, `controller` varchar(20) default NULL, `method` varchar(50) default NULL, `language` varchar(20) default NULL, `access` varchar(50) default NULL, `keywords` text, PRIMARY KEY `search_id` (`search_id`), FULLTEXT(`keywords`) ) TYPE=MyISAM DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci

    Filename: C:\wamp\www\system\codeigniter\system\database\DB_driver.php

    Line Number: 330

    I’m using
    php 5.3
    EE 2.1.3
    MySQL 5.5

    Also tryed a fresh install on my other laptop same software but a fresh download of ee 2.1.3 and it kicked back the same error!
    Any help would be very helpful

  • #6 / Jan 05, 2011 5:39pm

    Ingmar

    29245 posts

    I think TYPE= was removed in the most recent MySQL version, yes. For a quick fix, can you try to replace

    TYPE=MyISAM

    with

    ENGINE=MyISAM

    ?

  • #7 / Jan 05, 2011 5:58pm

    beardsell

    3 posts

    Perfect done the job!

  • #8 / Jan 05, 2011 6:02pm

    CanfieldSci

    4 posts

    So where would that change be made?

    codeigniter\system\database\DB_driver.php does not contain the TYPE= code

  • #9 / Jan 05, 2011 6:08pm

    beardsell

    3 posts

    I changed it in two places i’m gessing the code on db_driver.php calls that snippet from another file
    any way the places i changed it were

    1. “system/installer/updates/ud_200.php”
    2. “system/installer/schema/mysql_schema.php”

    hope it helps

  • #10 / Jan 06, 2011 10:43am

    Sue Crocker

    26054 posts

    Thanks for the assist, beardsell.

    CanfieldSci - were you able to get things working?

  • #11 / Jan 06, 2011 4:11pm

    CanfieldSci

    4 posts

    We had to roll back to MySQL 5.1.  Maybe when we go live we will be able to build out with 5.5.

  • #12 / Jan 07, 2011 3:18am

    John Henry Donovan

    12339 posts

    Glad you are up and running again.Feel free to start a new thread if you have any more questions.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases