{"id":444,"date":"2023-04-09T00:00:00","date_gmt":"2023-04-09T00:00:00","guid":{"rendered":"http:\/\/basicwebsitesolutions.com\/blog\/?p=444"},"modified":"2023-04-09T00:00:01","modified_gmt":"2023-04-09T00:00:01","slug":"1005-cant-create-table-xxxxxx-errno-150-solved","status":"publish","type":"post","link":"https:\/\/basicwebsitesolutions.com\/blog\/2023\/04\/09\/1005-cant-create-table-xxxxxx-errno-150-solved\/","title":{"rendered":"#1005 &#8211; Can&#8217;t create table &#8216;xxxxxx&#8217; (errno: 150) [SOLVED]"},"content":{"rendered":"\n<p>If you are using xampp and you encounter this message during creation of a table, i have found that a lot of them pertain to the unit used to reference the field. If the master table used INT (11), when you reference it as a foreign key, you also need to use the same unit INT(11) as well.<\/p>\n\n\n\n<p>In my case it was different. You see, i got this message because the table I used as a foreign key is the table &#8216;item&#8217; whereas originally it was table &#8216;item_list&#8217;. <\/p>\n\n\n\n<p>So just in case you encounter this one and still have problems, it might be the table name.<\/p>\n\n\n\n<p>Learn and move forward<\/p>\n\n\n\n<p>Coffee Cup<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>#1005 &#8211; Can&#8217;t create table &#8216;xxxxxx&#8217; (errno: 150) [SOLVED]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,1,11],"tags":[256,257,255,254,42],"class_list":["post-444","post","type-post","status-publish","format-standard","hentry","category-day-to-day-life","category-life-as-a-programmer","category-php-and-mysql","tag-256","tag-create-table","tag-errno-150","tag-mysql","tag-php"],"_links":{"self":[{"href":"https:\/\/basicwebsitesolutions.com\/blog\/wp-json\/wp\/v2\/posts\/444","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/basicwebsitesolutions.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/basicwebsitesolutions.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/basicwebsitesolutions.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/basicwebsitesolutions.com\/blog\/wp-json\/wp\/v2\/comments?post=444"}],"version-history":[{"count":1,"href":"https:\/\/basicwebsitesolutions.com\/blog\/wp-json\/wp\/v2\/posts\/444\/revisions"}],"predecessor-version":[{"id":445,"href":"https:\/\/basicwebsitesolutions.com\/blog\/wp-json\/wp\/v2\/posts\/444\/revisions\/445"}],"wp:attachment":[{"href":"https:\/\/basicwebsitesolutions.com\/blog\/wp-json\/wp\/v2\/media?parent=444"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/basicwebsitesolutions.com\/blog\/wp-json\/wp\/v2\/categories?post=444"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/basicwebsitesolutions.com\/blog\/wp-json\/wp\/v2\/tags?post=444"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}