01/10/2018, 10:37

Cần hỏi về lỗi sql khi import

Mọi người cho mình hỏi, hiện mình đang chuyển từ hosting sang vps.
Hosting cũ của mình xài mysql5.6 , vps mình xài mariaDB 5
Hiện mình đang gặp vấn đề khi import :
#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ‘TYPE=MyISAM AUTO_INCREMENT=11’ at line 28

mọi người biết cách chỉ dùm mình, xin cảm ơn ạ

Ice Tea viết 12:42 ngày 01/10/2018

Bạn dùng cái gì export ra file sql thế?
Sửa file sql, thay cái TYPE=MyISAM bằng ENGINE=MyISAM nhé

https://dev.mysql.com/doc/refman/5.5/en/create-table.html

Note
The older TYPE option was synonymous with ENGINE. TYPE was deprecated in MySQL 4.0 and removed in MySQL 5.5. When upgrading to MySQL 5.5 or later, you must convert existing applications that rely on TYPE to use ENGINE instead.

Nicky Nguyen viết 12:47 ngày 01/10/2018

thanks bạn, mình xử lý đc rồi

Bài liên quan
0