To fix the error, you just need to replace TYPE with ENGINE. The syntax to set the engine is as follows −
ENGINE = MyISAM;
The MySQL error occurs when TYPE is used. Let us see the same scenario while creating a table −
mysql> create table Customers −> ( −> CustomerId int, −> CustomerName varchar(200) −> )TYPE = MyISAM;
The error is as follows −
ERROR 1064 (42000): 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' at line 5
To resolve the above error, replace TYPE with ENGINE as shown below −
mysql> create table Customers −> ( −> CustomerId int, −> CustomerName varchar(200) −> )ENGINE = MyISAM; Query OK, 0 rows affected (0.24 sec)
The “ENGINE = MyISAM” in MySQL updates successfully.