Error Code: 2013. Lost connection to MySQL server during query

Error Code: 2013. Lost connection to MySQL server during query


Problem situation:

Derived from the development machine schema MySQL database, and then into the test machine MySQL database, an error message appears: Error Code: 2013. Lost connection to MySQL server during query.

Full error message:

10:38:35    CREATE TABLE `__migrationhistory` (   `MigrationId` varchar(150) NOT NULL,   `ContextKey` varchar(300) NOT NULL,   `Model` longblob NOT NULL,   `ProductVersion` varchar(32) NOT NULL,   PRIMARY KEY (`MigrationId`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8    Error Code: 2013. Lost connection to MySQL server during query    0.936 sec

The causes of:

The development machine database engine is InnoDB, but the test machine database engine is MyISAM.

Solution:

The export Sql Script is ENGINE = InnoDB fully removed.

Original: Big Box  Error Code: 2013. Lost connection to MySQL server during query


Guess you like

Origin www.cnblogs.com/chinatrump/p/11496828.html