{"id":4781,"date":"2010-01-01T13:14:11","date_gmt":"2010-01-01T19:14:11","guid":{"rendered":"http:\/\/www.conradaskland.com\/blog\/?p=4781"},"modified":"2010-01-01T13:16:16","modified_gmt":"2010-01-01T19:16:16","slug":"vbulletin-create-search-table","status":"publish","type":"post","link":"https:\/\/conradaskland.com\/blog\/vbulletin-create-search-table\/","title":{"rendered":"VBulletin Create Search Table"},"content":{"rendered":"<p>This took me quite a while to find. Here is the query to use in MySql to create the search table in VBulletin. To find the code to create other tables in VBulletin database go to your VB upload files to: install\/mysql-schema.php<\/p>\n<p>This was in response to an INVALID SQL error in VB 4.0 where &#8220;domainname&#8221; is the name of your website url:<br \/>\nMySQL Error \u00a0 : Table &#8216;domainname.search&#8217; doesn&#8217;t exist<br \/>\nError Number \u00a0: 1146<\/p>\n<p><!--more--><\/p>\n<p>You may also visit this thread at VBulletin.com:<\/p>\n<p><a href=\"http:\/\/www.vbulletin.com\/forum\/showthread.php?318389-Search-function-problem&amp;highlight=CREATE+TABLE+search\" target=\"_blank\">http:\/\/www.vbulletin.com\/forum\/showthread.php?318389-Search-function-problem&amp;highlight=CREATE+TABLE+search<\/a><\/p>\n<p>Here is the code to create the search table:<\/p>\n<p>CREATE\u00a0TABLE\u00a0search\u00a0(<br \/>\nsearchid INT UNSIGNED NOT NULL AUTO_INCREMENT,<br \/>\nuserid INT UNSIGNED NOT NULL DEFAULT &#8216;0&#8217;,<br \/>\nipaddress CHAR(15) NOT NULL DEFAULT &#8221;,<br \/>\npersonal SMALLINT UNSIGNED NOT NULL DEFAULT &#8216;0&#8217;,<br \/>\nquery VARCHAR(200) NOT NULL DEFAULT &#8221;,<br \/>\nsearchuser VARCHAR(200) NOT NULL DEFAULT &#8221;,<br \/>\nforumchoice MEDIUMTEXT,<br \/>\nprefixchoice MEDIUMTEXT,<br \/>\nsortby VARCHAR(200) NOT NULL DEFAULT &#8221;,<br \/>\nsortorder VARCHAR(4) NOT NULL DEFAULT &#8221;,<br \/>\nsearchtime float NOT NULL DEFAULT &#8216;0&#8217;,<br \/>\nshowposts SMALLINT UNSIGNED NOT NULL DEFAULT &#8216;0&#8217;,<br \/>\norderedids MEDIUMTEXT,<br \/>\nannounceids MEDIUMTEXT,<br \/>\ndateline INT UNSIGNED NOT NULL DEFAULT &#8216;0&#8217;,<br \/>\nsearchterms MEDIUMTEXT,<br \/>\ndisplayterms MEDIUMTEXT,<br \/>\nsearchhash VARCHAR(32) NOT NULL DEFAULT &#8221;,<br \/>\ntitleonly SMALLINT UNSIGNED NOT NULL DEFAULT &#8216;0&#8217;,<br \/>\ncompleted SMALLINT UNSIGNED NOT NULL DEFAULT &#8216;1&#8217;,<br \/>\nPRIMARY KEY (searchid),<br \/>\nUNIQUE KEY searchunique (searchhash, sortby, sortorder)<br \/>\n);<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This took me quite a while to find. Here is the query to use in MySql to create the search table in VBulletin. To find the code to create other tables in VBulletin database go to your VB upload files to: install\/mysql-schema.php This was in response to an INVALID SQL error in VB 4.0 where [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"footnotes":""},"categories":[6],"tags":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p3C0LX-1f7","_links":{"self":[{"href":"https:\/\/conradaskland.com\/blog\/wp-json\/wp\/v2\/posts\/4781"}],"collection":[{"href":"https:\/\/conradaskland.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/conradaskland.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/conradaskland.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/conradaskland.com\/blog\/wp-json\/wp\/v2\/comments?post=4781"}],"version-history":[{"count":3,"href":"https:\/\/conradaskland.com\/blog\/wp-json\/wp\/v2\/posts\/4781\/revisions"}],"predecessor-version":[{"id":4783,"href":"https:\/\/conradaskland.com\/blog\/wp-json\/wp\/v2\/posts\/4781\/revisions\/4783"}],"wp:attachment":[{"href":"https:\/\/conradaskland.com\/blog\/wp-json\/wp\/v2\/media?parent=4781"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/conradaskland.com\/blog\/wp-json\/wp\/v2\/categories?post=4781"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/conradaskland.com\/blog\/wp-json\/wp\/v2\/tags?post=4781"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}