---
title: "mysql版本不同所导致SQL语句执行错误的问题"
author: "青春的、脚步"
date: "2012-03-21T16:42:00Z"
tags: []
slug: "mysql-sql"
draft: false
lastmod: "2014-01-24T16:52:42Z"
id: 2009186
url: "https://youngstep.iteye.com/blog/2009186"
---

TYPE=InnoDB;是旧版本的

在新版本执行时会出现

\[Err] 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=InnoDB' at line 12

解决方法：ENGINE=InnoDB改为ENGINE=InnoDB

ENGINE=InnoDB AUTO\_INCREMENT=4 DEFAULT CHARSET=utf8;

okay