Để khắc phục lỗi này, chỉ cần thay thế TYPE bằng ENGINE. Cú pháp:
ENGINE = MyISAM;
Lỗi xảy ra khi sử dụng TYPE (cũ):
mysql> CREATE TABLE Customers (
-> CustomerId INT,
-> CustomerName VARCHAR(200)
-> ) TYPE = MyISAM;
Lỗi:
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
Sửa bằng ENGINE:
mysql> CREATE TABLE Customers (
-> CustomerId INT,
-> CustomerName VARCHAR(200)
-> ) ENGINE = MyISAM;
Kết quả: Query OK, 0 rows affected. Từ MySQL 5.5+, TYPE đã bị loại bỏ, phải dùng ENGINE.