您好,欢迎访问一九零五行业门户网

MySQL出现1005

环境:navicatformysql8.2 + mysql sever 5.1,问题:创建外键出现105错误,如下图:
环境:navicatformysql8.2 + mysql sever 5.1
问题:创建外键出现105错误,如下图:
解决:删除引用表,,重新创建。
stackoverflow上面对105错误的解释:
if you re-create a table that was dropped, it must have a definitionthat conforms to the foreign key constraints referencing it. it must have theright column names and types, and it must have indexes on the referenced keys,as stated earlier. if these are not satisfied, mysql returns error number 1005and refers to error 150 in the error message.
其它类似信息

推荐信息